summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/mangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/mangle.c')
-rw-r--r--clang/test/CodeGen/mangle.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/mangle.c b/clang/test/CodeGen/mangle.c
index bcb1400dd58..89e0e8a79a8 100644
--- a/clang/test/CodeGen/mangle.c
+++ b/clang/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() {
+}
OpenPOWER on IntegriCloud