Unified · Split
| @@ -4890,6 +4890,9 @@ ST_FUNC void unary(void) · 4889 unmodified lines | ||
| 4890 | 4890 | case TOK_ALIGNOF1: |
| 4891 | 4891 | case TOK_ALIGNOF2: |
| 4892 | 4892 | case TOK_ALIGNOF3: |
| 4893 | + if (tcc_state->cversion != 201112 && | |
| 4894 | + tok == TOK_ALIGNOF3) | |
| 4895 | + goto tok_identifier; | |
| 4893 | 4896 | t = tok; |
| 4894 | 4897 | next(); |
| 4895 | 4898 | in_sizeof++; |
| @@ -5099,6 +5102,8 @@ ST_FUNC void unary(void) · 203 unmodified lines | ||
| 5099 | 5102 | TokenString *str = NULL; |
| 5100 | 5103 | int saved_const_wanted = const_wanted; |
| 5101 | 5104 | |
| 5105 | + if (tcc_state->cversion != 201112) | |
| 5106 | + goto tok_identifier; | |
| 5102 | 5107 | next(); |
| 5103 | 5108 | skip('('); |
| 5104 | 5109 | const_wanted = 0; |
| @@ -42,11 +42,16 @@ NORUN = · 41 unmodified lines | ||
| 42 | 42 | 42_function_pointer.test : NORUN = true |
| 43 | 43 | |
| 44 | 44 | # Some tests might need different flags |
| 45 | +33_ternary_op.test : FLAGS += -std=c11 | |
| 46 | + | |
| 45 | 47 | FLAGS = |
| 46 | 48 | 76_dollars_in_identifiers.test : FLAGS += -fdollars-in-identifiers |
| 47 | 49 | |
| 48 | 50 | # These tests run several snippets from the same file one by one |
| 49 | −60_errors_and_warnings.test : FLAGS += -dt | |
| 51 | +60_errors_and_warnings.test : FLAGS += -dt -std=c11 | |
| 52 | + | |
| 53 | +94_generic.test : FLAGS += -std=c11 | |
| 54 | + | |
| 50 | 55 | 96_nodata_wanted.test : FLAGS += -dt |
| 51 | 56 | |
| 52 | 57 | # Always generate certain .expects (don't put these in the GIT), |