summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2002-02-16-RenamingTest.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2002-02-16-RenamingTest.c')
-rw-r--r--clang/test/CodeGen/2002-02-16-RenamingTest.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2002-02-16-RenamingTest.c b/clang/test/CodeGen/2002-02-16-RenamingTest.c
new file mode 100644
index 0000000..bb23e68
--- /dev/null
+++ b/clang/test/CodeGen/2002-02-16-RenamingTest.c
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
+
+/* test that locals are renamed with . notation */
+
+void abc(void *);
+
+void Test5(double X) {
+ abc(&X);
+ {
+ int X;
+ abc(&X);
+ {
+ float X;
+ abc(&X);
+ }
+ }
+}
+