xref: /llvm-project/clang/test/CXX/temp/temp.spec/temp.inst/p11.cpp (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1 // RUN: %clang_cc1 -verify -emit-llvm-only %s
2 
3 namespace test0 {
f0()4   template<typename T> unsigned f0() {
5     return T::MaxSize; // expected-error {{'int' cannot be used prior to '::'}}
6   };
7   template<typename T> struct A {
Allocatetest0::A8     void Allocate(unsigned Alignment
9                     = f0<T>()) // expected-note {{in instantiation}}
10     {}
11   };
f1(A<int> x)12   void f1(A<int> x) { x.Allocate(); }
13 
14 }
15