From f7c00eda7f21ef89cfec48fa90b743a403b89d4b Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Mon, 25 Jan 2010 18:30:26 +0000 Subject: Fix a code gen. bug involving compiling global references. (fixes radar 7574896). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94434 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/reference-init.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/CodeGenCXX/reference-init.cpp') diff --git a/test/CodeGenCXX/reference-init.cpp b/test/CodeGenCXX/reference-init.cpp index 6c2c6a3016..61ae2daffd 100644 --- a/test/CodeGenCXX/reference-init.cpp +++ b/test/CodeGenCXX/reference-init.cpp @@ -14,3 +14,8 @@ namespace PR5911 { int iarr[] = { 1 }; int test() { return f(iarr); } } + +// radar 7574896 +struct Foo { int foo; }; +Foo& ignoreSetMutex = *(new Foo); + -- cgit v1.2.3-70-g09d2