aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-18 23:46:07 +0000
committerChris Lattner <sabre@nondot.org>2003-11-18 23:46:07 +0000
commitdf52d97b57e04c23284924c50c6ff728f2a1e982 (patch)
treedbd319b3bd526b35cbf74f18e850f3edbab43c38
parent43a54ccb511ab40d3ec561a5529c768c1a9a98d2 (diff)
Testcase for PR131
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10074 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CFrontend/2003-11-18-CondExprLValue.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CFrontend/2003-11-18-CondExprLValue.c b/test/CFrontend/2003-11-18-CondExprLValue.c
new file mode 100644
index 0000000000..fbafacb2ce
--- /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;
+}
+