Chris Lattner | 9189156 | 2008-05-04 18:36:18 +0000 | [diff] [blame] | 1 | // Comma is not allowed in C89 |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 2 | // RUN: not %clang_cc1 -E %s -std=c89 -pedantic-errors |
Chris Lattner | 9189156 | 2008-05-04 18:36:18 +0000 | [diff] [blame] | 3 | |
| 4 | // Comma is allowed if unevaluated in C99 |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 5 | // RUN: %clang_cc1 -E %s -std=c99 -pedantic-errors |
Chris Lattner | 9189156 | 2008-05-04 18:36:18 +0000 | [diff] [blame] | 6 | |
| 7 | // PR2279 |
| 8 | |
| 9 | #if 0? 1,2:3 |
| 10 | #endif |