You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
301 B
9 lines
301 B
// RUN: %clang_cc1 -fsyntax-only -std=c++14 -verify %s
|
|
|
|
void f() {
|
|
if (bool b = true; b) {} // expected-warning {{'if' initialization statements are a C++17 extension}}
|
|
switch (int n = 5; n) { // expected-warning {{'switch' initialization statements are a C++17 extension}}
|
|
case 5: break;
|
|
}
|
|
}
|