aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/mangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/mangle.c')
-rw-r--r--test/CodeGen/mangle.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/mangle.c b/test/CodeGen/mangle.c
index bcb1400dd5..89e0e8a79a 100644
--- a/test/CodeGen/mangle.c
+++ b/test/CodeGen/mangle.c
@@ -36,3 +36,14 @@ void test2() {
}
int foo4 __asm__("var") = 4;
+
+// Variable becomes a function
+extern int foo5 __asm__("var2");
+
+void test3() {
+ foo5 = 1;
+}
+
+void foo6() __asm__("var2");
+void foo6() {
+}