[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / warn-c++1z-extensions.cpp
bloba0d44a34ffed1d2eac01989df49ed209fcdc0490
1 // RUN: %clang_cc1 -fsyntax-only -std=c++14 -verify %s
3 void f() {
4 if (bool b = true; b) {} // expected-warning {{'if' initialization statements are a C++17 extension}}
5 switch (int n = 5; n) { // expected-warning {{'switch' initialization statements are a C++17 extension}}
6 case 5: break;