Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -triple armv7 -std=c++14 -x c++ %s -fsyntax-only
      2 // expected-no-diagnostics
      3 
      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;
     11   };
     12 
     13   auto single_void = []() __attribute__ (( pcs("aapcs") )) { };
     14   auto multiple_void = []() __attribute__ (( pcs("aapcs") ))
     15                             __attribute__ (( pcs("aapcs") )) { };
     16 }
     17 
     18 auto ( __attribute__ (( pcs("aapcs") )) single_attribute() ) { }
     19 auto ( ( __attribute__ (( pcs("aapcs") )) ( ( __attribute__ (( pcs("aapcs") )) multiple_attributes() ) ) ) ) { }
     20 
     21