From 009b1c42aa6266385f2c37e227516b24077e6dd7 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jun 2009 17:52:33 +0000 Subject: Import LLVM, at r72732. --- test/FrontendC/2003-10-02-UnionLValueError.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/FrontendC/2003-10-02-UnionLValueError.c (limited to 'test/FrontendC/2003-10-02-UnionLValueError.c') diff --git a/test/FrontendC/2003-10-02-UnionLValueError.c b/test/FrontendC/2003-10-02-UnionLValueError.c new file mode 100644 index 0000000000000..2ded0c64b42e0 --- /dev/null +++ b/test/FrontendC/2003-10-02-UnionLValueError.c @@ -0,0 +1,13 @@ +// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null + +#include + +union U{ + int i[8]; + char s[80]; +}; + +void format_message(char *buffer, union U *u) { + sprintf(buffer, u->s); +} + -- cgit v1.2.3