From d8734cf9162bc74b3c7603e4e81cb04a983bd444 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 29 May 2008 19:17:15 +0000 Subject: For PR1338: Rename test dirs llvm-svn: 51695 --- llvm/test/FrontendC/2003-10-02-UnionLValueError.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 llvm/test/FrontendC/2003-10-02-UnionLValueError.c (limited to 'llvm/test/FrontendC/2003-10-02-UnionLValueError.c') diff --git a/llvm/test/FrontendC/2003-10-02-UnionLValueError.c b/llvm/test/FrontendC/2003-10-02-UnionLValueError.c new file mode 100644 index 00000000000..732f93a7731 --- /dev/null +++ b/llvm/test/FrontendC/2003-10-02-UnionLValueError.c @@ -0,0 +1,11 @@ +// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null + +union U{ + int i[8]; + char s[80]; +}; + +void format_message(char *buffer, union U *u) { + sprintf(buffer, u->s); +} + -- cgit v1.2.3