diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-28 02:25:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-28 02:25:27 +0000 |
commit | 1a7b2e99c09e4368d7b6e43cdbfe53ee0ade1a51 (patch) | |
tree | 6f470b45401e466dbc00a0e176659c9a843da6a6 /test/SemaCXX | |
parent | e1bb329744ec98ca921bfc4f0888cff7ab4d1bf4 (diff) |
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
Diffstat (limited to 'test/SemaCXX')
-rw-r--r-- | test/SemaCXX/crashes.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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(); + } + } +} |