diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-02-24 23:53:49 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-02-24 23:53:49 +0000 |
commit | 5a13d4d2c1e45ab611ca857d923caacfaeb3cd07 (patch) | |
tree | 5a9afb1e6adb45af4f1b8595c683c90cca09249d /test/CodeGen/init.c | |
parent | 61dab36ccbcc1eef7b7cfcb641e04116726ad053 (diff) |
Fix a stupid mistake in r151133. Reported to me by Joerg Sonnenberger.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/init.c')
-rw-r--r-- | test/CodeGen/init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/init.c b/test/CodeGen/init.c index 599b4f23db..426233d8df 100644 --- a/test/CodeGen/init.c +++ b/test/CodeGen/init.c @@ -123,3 +123,10 @@ struct test12 { struct test12 (*p)(void); } test12g; + +void test13(int x) { + struct X { int a; int b : 10; int c; }; + struct X y = {.c = x}; + // CHECK: @test13 + // CHECK: and i32 {{.*}}, -1024 +} |