summaryrefslogtreecommitdiff
path: root/test/CFrontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-31 17:54:24 +0000
committerChris Lattner <sabre@nondot.org>2002-07-31 17:54:24 +0000
commite540dda5362d8338d456b92f34b7cf4bb92c582d (patch)
treebad28978b435609221e4ca8afd79bf466b3eed3a /test/CFrontend
parent3fb21e5bb5a516e728f3a3765be690767cfa3fe9 (diff)
downloadllvm-e540dda5362d8338d456b92f34b7cf4bb92c582d.tar.gz
llvm-e540dda5362d8338d456b92f34b7cf4bb92c582d.tar.bz2
llvm-e540dda5362d8338d456b92f34b7cf4bb92c582d.tar.xz
Fix testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r--test/CFrontend/2002-07-30-SubregSetAssertion.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CFrontend/2002-07-30-SubregSetAssertion.c b/test/CFrontend/2002-07-30-SubregSetAssertion.c
index 20314bfdfa..e00a3ce945 100644
--- a/test/CFrontend/2002-07-30-SubregSetAssertion.c
+++ b/test/CFrontend/2002-07-30-SubregSetAssertion.c
@@ -3,7 +3,8 @@ union X {
void *B;
};
-union X void foo() {
+union X foo() {
union X A;
- A.B = (void*)123
+ A.B = (void*)123;
+ return A;
}