[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaTemplate / instantiate-type.cpp
blob2440a38f3e6a495ad3b33ade9b0a5f3dca6f4593
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 int* f(int);
4 float *f(...);
6 template<typename T>
7 struct X {
8 typedef typeof(T*) typeof_type;
9 typedef typeof(f(T())) typeof_expr;
12 int *iptr0;
13 float *fptr0;
14 X<int>::typeof_type &iptr1 = iptr0;
16 X<int>::typeof_expr &iptr2 = iptr0;
17 X<float*>::typeof_expr &fptr1 = fptr0;
19 namespace rdar13094134 {
20 template <class>
21 class X {
22 typedef struct {
23 Y *y; // expected-error{{unknown type name 'Y'}}
24 } Y;
27 X<int> xi;