• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 %s -verify -fms-extensions
2 
3 #define M __asm int 0x2c
4 #define M2 int
5 
t1(void)6 void t1(void) { M }
t2(void)7 void t2(void) { __asm int 0x2c }
t3(void)8 void t3(void) { __asm M2 0x2c }
t4(void)9 void* t4(void) { __asm mov eax, fs:[0x10] }
t5()10 void t5() {
11   __asm {
12     int 0x2c ; } asm comments are fun! }{
13   }
14   __asm {}
15 }
16 int t6() {
17   __asm int 3 ; } comments for single-line asm
18   __asm {}
19 
20   __asm int 4
21   return 10;
22 }
23 int t7() { // expected-note {{to match this}}
24   __asm
25   __asm { // expected-error 3 {{expected}} expected-note {{to match this}}
26