Blame cpp-test/test-t/e_14_7.c
|
Packit Service |
8bf002 |
/* e_14_7.c: There is no keyword in #if expression. */
|
|
Packit Service |
8bf002 |
|
|
Packit Service |
8bf002 |
/* { dg-do preprocess }
|
|
Packit Service |
8bf002 |
{ dg-options "-ansi -w" }
|
|
Packit Service |
8bf002 |
*/
|
|
Packit Service |
8bf002 |
|
|
Packit Service |
8bf002 |
/* 14.7: sizeof operator is disallowed. */
|
|
Packit Service |
8bf002 |
/* Evaluated as: 0 (0)
|
|
Packit Service |
8bf002 |
Constant expression syntax error. */
|
|
Packit Service |
8bf002 |
#if sizeof (int) /* { dg-error "missing binary operator|(parse|syntax) error| Operator \"\\(\" in incorrect context" } */
|
|
Packit Service |
8bf002 |
#endif
|
|
Packit Service |
8bf002 |
|
|
Packit Service |
8bf002 |
/* 14.8: type cast is disallowed. */
|
|
Packit Service |
8bf002 |
/* Evaluated as: (0)0x8000
|
|
Packit Service |
8bf002 |
Also a constant expression error. */
|
|
Packit Service |
8bf002 |
#if (int)0x8000 < 0 /* { dg-error "missing binary operator|(parse|syntax) error| Misplaced constant" } */
|
|
Packit Service |
8bf002 |
#endif
|
|
Packit Service |
8bf002 |
|