commit | edcae8eb38944854a5337ab0034df1119a8fea99 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Sep 30 17:13:34 2003 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Sep 30 17:13:34 2003 +0000 |
tree | fb6b7ed8aed5794be5baaa763b61a485f5818eee | |
parent | ee7ebdc6b21a8f9dfbed875b1f44d85e9c412ab4 [diff] [blame] |
new testcase distilled from 177.mesa llvm-svn: 8766
diff --git a/llvm/test/Regression/CFrontend/2003-09-30-StructLayout.c b/llvm/test/Regression/CFrontend/2003-09-30-StructLayout.c new file mode 100644 index 0000000..2dc8122 --- /dev/null +++ b/llvm/test/Regression/CFrontend/2003-09-30-StructLayout.c
@@ -0,0 +1,16 @@ +enum En { + ENUM_VAL +}; + +struct St { + unsigned char A; + enum En B; + unsigned char C; + enum En D; + float E; +}; + + +void func(struct St* A) { + A->D = ENUM_VAL; +}