Steve Naroff | 03d6bc6 | 2008-02-08 03:36:19 +0000 | [diff] [blame] | 1 | // RUN: clang %s -verify -fms-extensions |
2 | |||||
3 | #define M __asm int 0x2c | ||||
4 | #define M2 int | ||||
5 | |||||
6 | void t1(void) { M } | ||||
7 | void t2(void) { __asm int 0x2c } | ||||
8 | // FIXME? We don't support fuzzy parsing line-oriented __asm's where the body is partially defined in a macro. | ||||
9 | void t3(void) { __asm M2 0x2c } // expected-error{{expected ';' after expression}} expected-warning{{expression result unused}} | ||||
10 |