blob: c35804e2d35f03d98bd67fb3d8c8680073b6bc62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// RUN: clang-cc -emit-llvm %s -o - -triple=x86_64-apple-darwin9 | FileCheck %s
namespace std {
struct A { A(); };
// CHECK: define void @_ZNSt1AC1Ev
// CHECK: define void @_ZNSt1AC2Ev
A::A() { }
};
namespace std {
template<typename T> struct allocator { };
}
// FIXME: typename is really not allowed here, but it's kept
// as a workaround for PR5061.
// CHECK: define void @_Z1fSaIcESaIiE
void f(typename std::allocator<char>, typename std::allocator<int>) { }
namespace std {
template<typename T> struct basic_string { };
}
// FIXME: typename is really not allowed here, but it's kept
// as a workaround for PR5061.
// CHECK: define void @_Z1fSbIcESbIiE
void f(typename std::basic_string<char>, typename std::basic_string<int>) { }
|