From df52d97b57e04c23284924c50c6ff728f2a1e982 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 18 Nov 2003 23:46:07 +0000 Subject: [PATCH] Testcase for PR131 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10074 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2003-11-18-CondExprLValue.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/CFrontend/2003-11-18-CondExprLValue.c diff --git a/test/CFrontend/2003-11-18-CondExprLValue.c b/test/CFrontend/2003-11-18-CondExprLValue.c new file mode 100644 index 00000000000..fbafacb2ce3 --- /dev/null +++ b/test/CFrontend/2003-11-18-CondExprLValue.c @@ -0,0 +1,7 @@ +typedef struct { unsigned long pgprot; } pgprot_t; + +void split_large_page(unsigned long addr, pgprot_t prot) +{ + (addr ? prot : ((pgprot_t) { 0x001 } )).pgprot; +} + -- 2.34.1