diff options
Diffstat (limited to 'test/CodeGen/catch-undef-behavior.c')
-rw-r--r-- | test/CodeGen/catch-undef-behavior.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/catch-undef-behavior.c b/test/CodeGen/catch-undef-behavior.c new file mode 100644 index 0000000000..b7a4a90347 --- /dev/null +++ b/test/CodeGen/catch-undef-behavior.c @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm -o /dev/null %s + +// PR6805 +void foo() { + union { int i; } u; + u.i=1; +} |