commit | 2de3b3a4aca5bb900b0b201bba1a44860e1a4b77 | [log] [tgz] |
---|---|---|
author | Seo Sanghyeon <sanxiyn@gmail.com> | Sun Dec 02 16:57:27 2007 +0000 |
committer | Seo Sanghyeon <sanxiyn@gmail.com> | Sun Dec 02 16:57:27 2007 +0000 |
tree | 689527551f8b1456429817312a37b4b0c3f078b7 | |
parent | ce39faa836d0fe2f3be9ff11865c6433f734b2c6 [diff] [blame] |
Fix isStructureType and isUnionType to ignore typedefs, as stated in the header. Patch by Cédric Venet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44519 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/union.c b/test/CodeGen/union.c index 8102f9b..4732938 100644 --- a/test/CodeGen/union.c +++ b/test/CodeGen/union.c
@@ -16,3 +16,9 @@ }__u; return (int)(__u.__u >> 31); } + +typedef union { int i; int *j; } value; + +int f3(value v) { + return *v.j; +}