mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-26 06:48:51 -04:00

assembly code. This avoids changing the bahvior when normal asm("") statements are used. The type of code affected would be: void* t4(void) { __asm mov eax, fs:[0x10] } I hope people like this version, if not, let me know. llvm-svn: 92531
10 lines
218 B
C
10 lines
218 B
C
// RUN: %clang_cc1 %s -verify -fms-extensions
|
|
|
|
#define M __asm int 0x2c
|
|
#define M2 int
|
|
|
|
void t1(void) { M }
|
|
void t2(void) { __asm int 0x2c }
|
|
void t3(void) { __asm M2 0x2c }
|
|
void* t4(void) { __asm mov eax, fs:[0x10] }
|