commit | 2f0495586001c1ff39f28fc23aee283d58147c6e | [log] [tgz] |
---|---|---|
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | Wed Jan 30 21:23:20 2008 +0000 |
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | Wed Jan 30 21:23:20 2008 +0000 |
tree | a963a41b9eda595bb2c8ec8f584b587059abaf37 | |
parent | c322e17875f24df1c4f150cac09467a583268945 [diff] [blame] |
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
diff --git a/test/CodeGen/init-with-member-expr.c b/test/CodeGen/init-with-member-expr.c new file mode 100644 index 0000000..f82a135 --- /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; +