From: Rafael Espindola Date: Sun, 28 Oct 2012 02:25:27 +0000 (+0000) Subject: Add a testcase from the previous bootstrap problem. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a7b2e99c09e4368d7b6e43cdbfe53ee0ade1a51;p=clang Add a testcase from the previous bootstrap problem. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166894 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/crashes.cpp b/test/SemaCXX/crashes.cpp index 1c72baca08..b8b782a998 100644 --- a/test/SemaCXX/crashes.cpp +++ b/test/SemaCXX/crashes.cpp @@ -148,3 +148,14 @@ namespace test1 { } }; } + +namespace test2 { + struct fltSemantics ; + const fltSemantics &foobar(); + void VisitCastExpr(int x) { + switch (x) { + case 42: + const fltSemantics &Sem = foobar(); + } + } +}