28 lines · cpp
1// RUN: %clang_cc1 %s -DNS=std -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s --check-prefix=CHECK-STD2// RUN: %clang_cc1 %s -DNS=n -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s --check-prefix=CHECK-N3 4// _ZNSt1DISt1CE1iE = std::D<std::C>::i5// CHECK-STD: @_ZNSt1DISt1CE1iE = 6 7// _ZN1n1DINS_1CEE1iE == n::D<n::C>::i8// 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}28