Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s |
Anders Carlsson | 1b3171d | 2009-12-04 23:50:01 +0000 | [diff] [blame] | 2 | // CHECK: ; ModuleID |
3 | template<typename> struct A { static int a; }; | ||||
4 | |||||
5 | // CHECK-NOT: @_ZN1AIcE1aE | ||||
6 | template<> int A<char>::a; | ||||
7 | |||||
8 | // CHECK: @_ZN1AIbE1aE = global i32 10 | ||||
9 | template<> int A<bool>::a = 10; | ||||
10 | |||||
11 |