diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-08 05:35:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-08 05:35:12 +0000 |
commit | 4cfeac8f572e93d2cc8f7a6bf74ae959116b9d77 (patch) | |
tree | e8597be6778dae4ce00ff610766a7480e539a849 /test/CFrontend | |
parent | eacf92759d3f0f01b1feead4ed8d6e5e811d97a9 (diff) | |
download | external_llvm-4cfeac8f572e93d2cc8f7a6bf74ae959116b9d77.zip external_llvm-4cfeac8f572e93d2cc8f7a6bf74ae959116b9d77.tar.gz external_llvm-4cfeac8f572e93d2cc8f7a6bf74ae959116b9d77.tar.bz2 |
New testcase for PR269
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12211 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r-- | test/CFrontend/2004-03-07-BitfieldCrash.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CFrontend/2004-03-07-BitfieldCrash.c b/test/CFrontend/2004-03-07-BitfieldCrash.c new file mode 100644 index 0000000..3a68d67 --- /dev/null +++ b/test/CFrontend/2004-03-07-BitfieldCrash.c @@ -0,0 +1,11 @@ + +struct s { + unsigned long long u33: 33; + unsigned long long u40: 40; +}; + +struct s a = { 1, 2}; + +int foo() { + return a.u40; +} |