Debian Codegraph @

gcc/testsuite/g++.target/i386/mangling-alias1.C

raw
1 // PR c++/114992
2 // { dg-do compile { target { c++11 && x86_64-*-* } } }
3 // { dg-require-ifunc "" }
4
5 template <typename Callable>
6 __attribute__((target_clones("avx2", "default")))
7 void handler(Callable) {}
8
9 inline int func()
10 {
11 auto l1 = [](int) {}; // different lambda signature
12 handler([]() {}); // so this one needs a mangling alias
13 return 42;
14 }
15
16 int g = func();