21 lines · cpp
1// RUN: %clang_cc1 -triple armv7 -std=c++14 -x c++ %s -fsyntax-only2// expected-no-diagnostics3 4void 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;11 };12 13 auto single_void = []() __attribute__ (( pcs("aapcs") )) { };14 auto multiple_void = []() __attribute__ (( pcs("aapcs") ))15 __attribute__ (( pcs("aapcs") )) { };16}17 18auto ( __attribute__ (( pcs("aapcs") )) single_attribute() ) { }19auto ( ( __attribute__ (( pcs("aapcs") )) ( ( __attribute__ (( pcs("aapcs") )) multiple_attributes() ) ) ) ) { }20 21