[flang] Update CommandTest for AIX (NFC) (#118403)
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.meaning / dcl.fct / p8.cpp
blob32ad25e2b70541abebcd702e57f401120962ee0c
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 struct A { }; // #defined-here
4 A::A (enum { e1 }) {} // expected-error{{cannot be defined in a parameter}}
5 void A::f(enum { e2 }) {} // expected-error{{cannot be defined in a parameter}}
7 enum { e3 } A::g() { } // expected-error{{cannot be defined in the result type}} \
8 // expected-error{{out-of-line definition}}
9 // expected-note@#defined-here{{defined here}}