2009-09-27 04:53:44 +08:00
|
|
|
// 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() { }
|
|
|
|
};
|
2009-09-27 07:10:05 +08:00
|
|
|
|
|
|
|
namespace std {
|
2009-10-09 01:20:26 +08:00
|
|
|
template<typename> struct allocator { };
|
2009-09-27 07:10:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK: define void @_Z1fSaIcESaIiE
|
2009-09-29 13:36:21 +08:00
|
|
|
void f(std::allocator<char>, std::allocator<int>) { }
|
2009-09-27 07:14:39 +08:00
|
|
|
|
|
|
|
namespace std {
|
2009-10-09 01:20:26 +08:00
|
|
|
template<typename, typename, typename> struct basic_string { };
|
2009-09-27 07:14:39 +08:00
|
|
|
}
|
|
|
|
|
2009-09-27 08:12:57 +08:00
|
|
|
// CHECK: define void @_Z1fSbIcciE
|
2009-09-29 13:36:21 +08:00
|
|
|
void f(std::basic_string<char, char, int>) { }
|
2009-09-27 08:12:57 +08:00
|
|
|
|
|
|
|
namespace std {
|
2009-10-09 01:20:26 +08:00
|
|
|
template<typename> struct char_traits { };
|
2009-09-27 08:12:57 +08:00
|
|
|
|
|
|
|
typedef std::basic_string<char, std::char_traits<char>, std::allocator<char> > string;
|
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK: _Z1fSs
|
|
|
|
void f(std::string) { }
|
2009-10-09 01:20:26 +08:00
|
|
|
|
|
|
|
namespace std {
|
|
|
|
template<typename, typename> struct basic_ostream { };
|
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK: _Z1fSo
|
|
|
|
void f(std::basic_ostream<char, std::char_traits<char> >) { }
|