James Molloy | b3c312c | 2012-03-05 09:59:43 +0000 | [diff] [blame] | 1 | // 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 | |
| 10 | namespace 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 | |
| 25 | int f() { |
| 26 | return NS::D<NS::C>::i; |
| 27 | } |