[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / implicit-instantiation-1.cpp
blobc3c49c3218b32fe0aa4bb6c29dadbfc01e9d02a3
1 // RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple %s -o %t
3 template<typename T>
4 struct X {
5 void f(T) { }
6 void f(char) { }
8 void g(T) { }
10 void h(T) { }
13 void foo(X<int> &xi, X<float> *xfp, int i, float f) {
14 // RUN: grep "linkonce_odr.*_ZN1XIiE1fEi" %t | count 1
15 xi.f(i);
17 // RUN: grep "linkonce_odr.*_ZN1XIiE1gEi" %t | count 1
18 xi.g(f);
20 // RUN: grep "linkonce_odr.*_ZN1XIfE1fEf" %t | count 1
21 xfp->f(f);
23 // RUN: not grep "linkonce_odr.*_ZN1XIfE1hEf" %t