brintos

brintos / llvm-project-archived public Read only

0
0
Text · 391 B · 0a991ba Raw
10 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3// This invalid declaration used to call infinite recursion in linkage4// calculation for enum as a function argument.5inline foo(A)(enum E;6// expected-error@-1 {{unknown type name 'foo'}}7// expected-error@-2 {{ISO C++ forbids forward references to 'enum' types}}8// expected-error@-3 {{expected ')'}}9// expected-note@-4 {{to match this '('}}10