| commit | 651f13cea278ec967336033dd032faef0e9fc2ec | [log] [tgz] |
|---|---|---|
| author | Stephen Hines <srhines@google.com> | Wed Apr 23 16:59:28 2014 -0700 |
| committer | Stephen Hines <srhines@google.com> | Wed Apr 23 16:59:54 2014 -0700 |
| tree | 14fadd70982e1428a21e9aa9cfee67c9ee317bee | |
| parent | e45aa073431f94fc0dafb56477aec2068ba2880f [diff] [blame] |
Updated to Clang 3.5a. Change-Id: I8127eb568f674c2e72635b639a3295381fe8af82
diff --git a/test/SemaCXX/switch-implicit-fallthrough.cpp b/test/SemaCXX/switch-implicit-fallthrough.cpp index d795923..831324a 100644 --- a/test/SemaCXX/switch-implicit-fallthrough.cpp +++ b/test/SemaCXX/switch-implicit-fallthrough.cpp
@@ -265,3 +265,16 @@ }; } +namespace PR18983 { + void fatal() __attribute__((noreturn)); + int num(); + void test() { + switch (num()) { + case 1: + fatal(); + // Don't issue a warning. + case 2: + break; + } + } +}