Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / attr-target-clones-aarch64.cpp
blob8eddfcea390c2cded9d5641c312e8e9c07ea1513
1 // RUN: %clang_cc1 -triple aarch64-linux-gnu -fsyntax-only -verify -fexceptions -fcxx-exceptions %s -std=c++14
3 void lambda() {
4 // expected-error@+1 {{attribute 'target_clones' multiversioned functions do not yet support lambdas}}
5 auto x = []() __attribute__((target_clones("default"))){};
6 x();
7 // expected-error@+1 {{attribute 'target_clones' multiversioned functions do not yet support lambdas}}
8 auto y = []() __attribute__((target_clones("fp16+lse", "rdm"))){};
9 y();