Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / attributed-auto-deduction.cpp
blobb0cae187e8e3138210e111304d1ef42caecd58c7
1 // RUN: %clang_cc1 -triple armv7 -std=c++14 -x c++ %s -fsyntax-only
2 // expected-no-diagnostics
4 void deduce() {
5 auto single_int = [](int i) __attribute__ (( pcs("aapcs") )) {
6 return i;
7 };
8 auto multiple_int = [](int i) __attribute__ (( pcs("aapcs") ))
9 __attribute__ (( pcs("aapcs") )) {
10 return i;
13 auto single_void = []() __attribute__ (( pcs("aapcs") )) { };
14 auto multiple_void = []() __attribute__ (( pcs("aapcs") ))
15 __attribute__ (( pcs("aapcs") )) { };
18 auto ( __attribute__ (( pcs("aapcs") )) single_attribute() ) { }
19 auto ( ( __attribute__ (( pcs("aapcs") )) ( ( __attribute__ (( pcs("aapcs") )) multiple_attributes() ) ) ) ) { }