brintos

brintos / llvm-project-archived public Read only

0
0
Text · 388 B · 5205980 Raw
13 lines · cpp
1// RUN: %clang_cc1 %s -fsyntax-only -fcxx-exceptions -verify2 3void t1() __attribute__((__diagnose_if__(baz))) try {} catch(...) {}4// expected-error@-1 {{use of undeclared identifier 'baz'}}5 6struct A {7  A();8};9 10A::A() __attribute__((__diagnose_if__(baz))) :;11// expected-error@-1 {{expected class member or base class name}}12// expected-error@-2 {{use of undeclared identifier 'baz'}}13