Blame cpp-test/test-t/e_pragma.c
|
Packit Service |
8bf002 |
/* e_pragma.c: Erroneous use of _Pragma() operator */
|
|
Packit Service |
8bf002 |
|
|
Packit Service |
8bf002 |
/* { dg-do preprocess } */
|
|
Packit Service |
8bf002 |
/* { dg-options "-std=c99 -pedantic-errors" } */
|
|
Packit Service |
8bf002 |
|
|
Packit Service |
8bf002 |
/* Operand of _Pragma() should be a string literal */
|
|
Packit Service |
8bf002 |
_Pragma( This is not a string literal)
|
|
Packit Service |
8bf002 |
/* { dg-error "_Pragma takes a parenthesized string literal| Operand of _Pragma\\(\\) is not a string literal" "" { target *-*-* } 7 } */
|
|
Packit Service |
8bf002 |
|