blob: 09a2533cb00cf44e7f8854b270739209813070f4 [file] [log] [blame]
Hans Wennborg442e4f72013-12-13 22:43:52 +00001// RUN: %clang_cc1 %s -DNS=std -emit-llvm -cxx-abi itanium -o - | FileCheck %s --check-prefix=CHECK-STD
2// RUN: %clang_cc1 %s -DNS=n -emit-llvm -cxx-abi itanium -o - | FileCheck %s --check-prefix=CHECK-N
James Molloy7583ccd2012-03-05 09:59:43 +00003
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}