summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Sema/warn-unreachable.c8
-rw-r--r--clang/test/SemaCXX/warn-unreachable.cpp8
2 files changed, 8 insertions, 8 deletions
diff --git a/clang/test/Sema/warn-unreachable.c b/clang/test/Sema/warn-unreachable.c
index 20e0c317240..80f32cd7328 100644
--- a/clang/test/Sema/warn-unreachable.c
+++ b/clang/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/clang/test/SemaCXX/warn-unreachable.cpp b/clang/test/SemaCXX/warn-unreachable.cpp
index ea6755f2d6c..604a3c0da38 100644
--- a/clang/test/SemaCXX/warn-unreachable.cpp
+++ b/clang/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}}
}
OpenPOWER on IntegriCloud