brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 8a66e23 Raw
28 lines · c
1// expected-error@+1{{expected (}}2#pragma clang restrict_expansion3 4// expected-error@+1{{expected identifier}}5#pragma clang restrict_expansion(46 7// expected-error@+1{{no macro named 'foo'}}8#pragma clang restrict_expansion(foo)9 10 11#define UNSAFE_MACRO 112// expected-note@+8{{macro marked 'restrict_expansion' here}}13// expected-note@+7{{macro marked 'restrict_expansion' here}}14// expected-note@+6{{macro marked 'restrict_expansion' here}}15// expected-note@+5{{macro marked 'restrict_expansion' here}}16// expected-note@+4{{macro marked 'restrict_expansion' here}}17// expected-note@+3{{macro marked 'restrict_expansion' here}}18// expected-note@+2{{macro marked 'restrict_expansion' here}}19// expected-note@+1{{macro marked 'restrict_expansion' here}} 20#pragma clang restrict_expansion(UNSAFE_MACRO, "Don't use this!")21 22#define UNSAFE_MACRO_2 223// expected-note@+1{{macro marked 'restrict_expansion' here}}24#pragma clang restrict_expansion(UNSAFE_MACRO_2)25 26// expected-error@+1{{expected )}}27#pragma clang deprecated(UNSAFE_MACRO28