[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.meaning / dcl.fct / p2-cxx0x.cpp
blobce90728861605fed8cf7b9f993c572979ef30a71
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3 auto a() -> int; // ok
4 const auto b() -> int; // expected-error {{function with trailing return type must specify return type 'auto', not 'const auto'}}
5 auto *c() -> int; // expected-error {{function with trailing return type must specify return type 'auto', not 'auto *'}}
6 auto (d() -> int); // expected-error {{trailing return type may not be nested within parentheses}}
7 auto e() -> auto (*)() -> auto (*)() -> void; // ok: same as void (*(*e())())();