aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/init-with-member-expr.c
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2008-01-30 21:23:20 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2008-01-30 21:23:20 +0000
commit5bfe18c32f5df99daa14f42574cae1323dfb866a (patch)
treea963a41b9eda595bb2c8ec8f584b587059abaf37 /test/CodeGen/init-with-member-expr.c
parent8df106e16197bf4bc055a9a9d73f4b78351c0c3e (diff)
getLLVMFieldNo can't be called before emitting the base value.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/init-with-member-expr.c')
-rw-r--r--test/CodeGen/init-with-member-expr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/init-with-member-expr.c b/test/CodeGen/init-with-member-expr.c
new file mode 100644
index 0000000000..f82a135415
--- /dev/null
+++ b/test/CodeGen/init-with-member-expr.c
@@ -0,0 +1,9 @@
+// RUN: clang %s -emit-llvm
+struct test {
+ int a;
+};
+
+extern struct test t;
+
+int *b=&t.a;
+