diff options
Diffstat (limited to 'clang/test/CodeGen/mangle.c')
-rw-r--r-- | clang/test/CodeGen/mangle.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/mangle.c b/clang/test/CodeGen/mangle.c index cdcce751cbd..bcb1400dd58 100644 --- a/clang/test/CodeGen/mangle.c +++ b/clang/test/CodeGen/mangle.c @@ -26,3 +26,13 @@ int test() { return nux + nux2; } + + +// Function becomes a variable. +void foo3() __asm__("var"); + +void test2() { + foo3(); +} +int foo4 __asm__("var") = 4; + |