aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-16 13:33:59 +0000
committerChris Lattner <sabre@nondot.org>2003-06-16 13:33:59 +0000
commitda92993480a8aa0169a697e19fea4ba47e537353 (patch)
tree113a935c1171b93ee0fc5944c3754e18060b9631
parent58184f5f0230d15397a598c378ad10833df46307 (diff)
New testcase identified by joel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6709 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/C++Frontend/2003-06-16-InvalidInitializer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-06-16-InvalidInitializer.c b/test/C++Frontend/2003-06-16-InvalidInitializer.c
new file mode 100644
index 0000000000..b9b4172dce
--- /dev/null
+++ b/test/C++Frontend/2003-06-16-InvalidInitializer.c
@@ -0,0 +1,7 @@
+typedef struct {
+ char *auth_pwfile;
+} auth_config_rec;
+
+void *Ptr = &((auth_config_rec*)0)->auth_pwfile;
+
+int main() { return 0; }