Testcase for PR131
authorChris Lattner <sabre@nondot.org>
Tue, 18 Nov 2003 23:46:07 +0000 (23:46 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Nov 2003 23:46:07 +0000 (23:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10074 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2003-11-18-CondExprLValue.c [new file with mode: 0644]

diff --git a/test/CFrontend/2003-11-18-CondExprLValue.c b/test/CFrontend/2003-11-18-CondExprLValue.c
new file mode 100644 (file)
index 0000000..fbafacb
--- /dev/null
@@ -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;
+}
+