blob: f5d02707cb1fd45a9d7530f19cd274adcb38ec0f [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only %s
Douglas Gregor5f8bd592009-05-26 22:09:24 +00002
3int* f(int);
4float *f(...);
5
6template<typename T>
7struct X {
8 typedef typeof(T*) typeof_type;
9 typedef typeof(f(T())) typeof_expr;
10};
11
12int *iptr0;
13float *fptr0;
14X<int>::typeof_type &iptr1 = iptr0;
15
16X<int>::typeof_expr &iptr2 = iptr0;
17X<float*>::typeof_expr &fptr1 = fptr0;