Debian Codegraph @

gcc/testsuite/g++.dg/parse/decl-specifier-1.C

raw
1 // Contributed by Gabriel Dos Reis <[email protected]>
2 // Origin: PRs 7721 and 7803
3 // { dg-do compile }
4
5 namespace N
6 {
7 template<typename>
8 struct X { };
9 }
10
11 N::X X; // { dg-error "" }
12
13 int main()
14 {
15 return sizeof(X); // { dg-prune-output "not declared in this scope" }
16 }