aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Sema/warn-unreachable.c8
-rw-r--r--test/SemaCXX/warn-unreachable.cpp8
2 files changed, 8 insertions, 8 deletions
diff --git a/test/Sema/warn-unreachable.c b/test/Sema/warn-unreachable.c
index 20e0c31724..80f32cd732 100644
--- a/test/Sema/warn-unreachable.c
+++ b/test/Sema/warn-unreachable.c
@@ -80,8 +80,8 @@ void test2() {
- // expected-warning {{will never be executed}}
halt();
case 8:
- i
- += // expected-warning {{will never be executed}}
+ i // expected-warning {{will never be executed}}
+ +=
halt();
case 9:
halt()
@@ -93,8 +93,8 @@ void test2() {
case 11: {
int a[5];
live(),
- a[halt()
- ]; // expected-warning {{will never be executed}}
+ a[halt() // expected-warning {{will never be executed}}
+ ];
}
}
}
diff --git a/test/SemaCXX/warn-unreachable.cpp b/test/SemaCXX/warn-unreachable.cpp
index ea6755f2d6..604a3c0da3 100644
--- a/test/SemaCXX/warn-unreachable.cpp
+++ b/test/SemaCXX/warn-unreachable.cpp
@@ -45,8 +45,8 @@ void test3() {
?
dead() : dead();
live(),
- float // expected-warning {{will never be executed}}
- (halt());
+ float
+ (halt()); // expected-warning {{will never be executed}}
}
void test4() {
@@ -73,6 +73,6 @@ void test6() {
S(int i) { }
};
live(),
- S // expected-warning {{will never be executed}}
- (halt());
+ S
+ (halt()); // expected-warning {{will never be executed}}
}