blob: a478dee4a42c7d4bab0c43546256a49668579706 [file] [log] [blame]
James Molloyb3c312c2012-03-05 09:59:43 +00001// RUN: %clang_cc1 %s -DNS=std -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-STD
2// RUN: %clang_cc1 %s -DNS=n -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-N
3
4// _ZNSt1DISt1CE1iE = std::D<std::C>::i
5// CHECK-STD: @_ZNSt1DISt1CE1iE =
6
7// _ZN1n1DINS_1CEE1iE == n::D<n::C>::i
8// CHECK-N: @_ZN1n1DINS_1CEE1iE =
9
10namespace NS {
11 extern "C" {
12 class C {
13 };
14 }
15
16 template <class T>
17 class D {
18 public:
19 static int i;
20 };
21
22}
23
24
25int f() {
26 return NS::D<NS::C>::i;
27}