canonical-expr-type.cpp [plain text]
void f();
template<typename T>
void f0(T x, __typeof__(f(x)) y) { }
template<typename T>
void f0(T x, __typeof__((f)(x)) y) { }
template<typename U>
void f0(U u, __typeof__(f(u))) { }
void f(int);
void f(double);
template<typename T, T N>
void f0a(T x, __typeof__(f(N)) y) { }
void f(int);
template<typename T, T N>
void f0a(T x, __typeof__(f(N)) y) { }
void f(float);
template<typename T, T N>
void f0a(T x, __typeof__(f(N)) y) { }
template<typename T, int N, int M>
void f1(T (&array)[N + M]) { }
template<typename T, int N, int M>
void f1(T (&array)[M + N]) { }
template<typename T, int M, int N>
void f1(T (&array)[M + N]) { }
template<typename T, int N, int M>
struct X2 {
typedef T __attribute__((ext_vector_type(N))) type1;
typedef T __attribute__((ext_vector_type(M))) type2;
typedef T __attribute__((ext_vector_type(N))) type3;
void f0(type1); void f0(type2);
void f0(type3); };