diff options
Diffstat (limited to 'clang/test/Parser/ms-inline-asm.c')
| -rw-r--r-- | clang/test/Parser/ms-inline-asm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Parser/ms-inline-asm.c b/clang/test/Parser/ms-inline-asm.c index 0170b2b84fa..c6af1ea5126 100644 --- a/clang/test/Parser/ms-inline-asm.c +++ b/clang/test/Parser/ms-inline-asm.c @@ -57,6 +57,11 @@ void t13() { __asm m{o}v eax, ebx // expected-error {{unknown token in expression}} } +void t14() { + enum { A = 1, B }; + __asm mov eax, offset A // expected-error {{offset operator cannot yet handle constants}} +} + int t_fail() { // expected-note {{to match this}} __asm __asm { // expected-error 3 {{expected}} expected-note {{to match this}} |

