|
251 | 251 | #if __has_embed("") // expected-error {{empty filename}} |
252 | 252 | #endif |
253 | 253 |
|
254 | | -// expected-error@+4 {{missing ')' after '__has_embed'}} \ |
255 | | - expected-error@+4 {{expected value in expression}} \ |
256 | | - expected-error@+4 {{unterminated conditional directive}} \ |
257 | | - expected-note@+4 {{to match this '('}} |
| 254 | +// expected-error@+9 {{unterminated conditional directive}} |
| 255 | +// expected-error@+13 {{unterminated conditional directive}} |
| 256 | +// expected-error@+17 {{unterminated conditional directive}} |
| 257 | +// expected-error@+21 {{unterminated conditional directive}} |
| 258 | +// expected-error@+25 {{unterminated conditional directive}} |
| 259 | + |
| 260 | +// expected-error@+3 {{missing ')' after '__has_embed'}} \ |
| 261 | + expected-error@+3 {{expected value in expression}} \ |
| 262 | + expected-note@+3 {{to match this '('}} |
| 263 | +#if __has_embed (__FILE__ foo limit(1) |
| 264 | + |
| 265 | +// expected-error@+3 {{missing ')' after '__has_embed'}} \ |
| 266 | + expected-error@+3 {{expected value in expression}} \ |
| 267 | + expected-note@+3 {{to match this '('}} |
| 268 | +#if __has_embed (__FILE__ foo |
| 269 | + |
| 270 | +// expected-error@+3 {{missing ')' after '__has_embed'}} \ |
| 271 | + expected-error@+3 {{expected value in expression}} \ |
| 272 | + expected-note@+3 {{to match this '('}} |
| 273 | +#if __has_embed ("a" foo() |
| 274 | + |
| 275 | +// expected-error@+3 {{missing ')' after '__has_embed'}} \ |
| 276 | + expected-error@+3 {{expected value in expression}} \ |
| 277 | + expected-note@+3 {{to match this '('}} |
| 278 | +#if __has_embed ("a" bar() foo |
| 279 | + |
| 280 | +// expected-error@+3 {{missing ')' after '__has_embed'}} \ |
| 281 | + expected-error@+3 {{expected value in expression}} \ |
| 282 | + expected-note@+3 {{to match this '('}} |
258 | 283 | #if __has_embed (__FILE__ limit(1) foo |
259 | 284 | int a = __has_embed (__FILE__); |
0 commit comments