summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attributed-auto-deduction.cpp
blob: d8dc43d66918c264bb94064b7dce1f46926ef428 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -triple armv7 -std=c++14 -x c++ %s -fsyntax-only
// expected-no-diagnostics

void deduce() {
  auto lambda = [](int i) __attribute__ (( pcs("aapcs") )) {
    return i;
  };
  lambda(42);
}

OpenPOWER on IntegriCloud