aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2002-02-16-RenamingTest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2002-02-16-RenamingTest.c')
-rw-r--r--test/FrontendC/2002-02-16-RenamingTest.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/FrontendC/2002-02-16-RenamingTest.c b/test/FrontendC/2002-02-16-RenamingTest.c
new file mode 100644
index 0000000..952af90
--- /dev/null
+++ b/test/FrontendC/2002-02-16-RenamingTest.c
@@ -0,0 +1,18 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -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);
+ }
+ }
+}
+