commit | a698493e48ca24761a9b1f47d1826ed302968461 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Mar 21 09:16:30 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Mar 21 09:16:30 2009 +0000 |
tree | 9e3e38b458ce1ab46cdebe1f4103966a73e4f269 | |
parent | d26784e27c6a5e9946b871504ec41cbcfe50f896 [diff] |
simplify and cleanup global variable creation stuff to all go through one code path. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67445 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/mangle.c b/test/CodeGen/mangle.c index cdcce75..bcb1400 100644 --- a/test/CodeGen/mangle.c +++ b/test/CodeGen/mangle.c
@@ -26,3 +26,13 @@ return nux + nux2; } + + +// Function becomes a variable. +void foo3() __asm__("var"); + +void test2() { + foo3(); +} +int foo4 __asm__("var") = 4; +