Debian Codegraph @

clang/test/CXX/temp/temp.spec/temp.inst/p11.cpp

raw
1 // RUN: %clang_cc1 -verify -emit-llvm-only %s
2
3 namespace test0 {
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 {
8 void Allocate(unsigned Alignment
9 = f0<T>()) // expected-note {{in instantiation}}
10 {}
11 };
12 void f1(A<int> x) { x.Allocate(); }
13
14 }