summaryrefslogtreecommitdiff
path: root/test/CodeGen/redefine_extname.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/redefine_extname.c')
-rw-r--r--test/CodeGen/redefine_extname.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/redefine_extname.c b/test/CodeGen/redefine_extname.c
index ad4106dd4535..d56527a88953 100644
--- a/test/CodeGen/redefine_extname.c
+++ b/test/CodeGen/redefine_extname.c
@@ -24,3 +24,9 @@ int f() {
extern int foo() { return 1; }
// CHECK: define i32 @bar()
+// Check that pragma redefine_extname applies to external declarations only.
+#pragma redefine_extname foo_static bar_static
+static int foo_static() { return 1; }
+int baz() { return foo_static(); }
+// CHECK-NOT: call i32 @bar_static()
+