blob: c35804e2d35f03d98bd67fb3d8c8680073b6bc62 [file] [log] [blame]
Anders Carlssone7c8cb62009-09-26 20:53:44 +00001// RUN: clang-cc -emit-llvm %s -o - -triple=x86_64-apple-darwin9 | FileCheck %s
2
3namespace std {
4 struct A { A(); };
5
6 // CHECK: define void @_ZNSt1AC1Ev
7 // CHECK: define void @_ZNSt1AC2Ev
8 A::A() { }
9};
Anders Carlsson8c031552009-09-26 23:10:05 +000010
11namespace std {
Anders Carlsson189d59c2009-09-26 23:14:39 +000012 template<typename T> struct allocator { };
Anders Carlsson8c031552009-09-26 23:10:05 +000013}
14
15// FIXME: typename is really not allowed here, but it's kept
16// as a workaround for PR5061.
17// CHECK: define void @_Z1fSaIcESaIiE
18void f(typename std::allocator<char>, typename std::allocator<int>) { }
Anders Carlsson189d59c2009-09-26 23:14:39 +000019
20namespace std {
21 template<typename T> struct basic_string { };
22}
23
24// FIXME: typename is really not allowed here, but it's kept
25// as a workaround for PR5061.
26// CHECK: define void @_Z1fSbIcESbIiE
27void f(typename std::basic_string<char>, typename std::basic_string<int>) { }