[X86] Move getGFNICtrlMask before CTLZ/CTTZ lowering. NFC.
[llvm-project.git] / clang / test / SemaCXX / funcdname.cpp
blobd63d3f54c3395692bf97914a3b7d61f498b5718b
1 // RUN: %clang_cc1 -std=c++1y -triple i386-pc-win32 -fms-compatibility -fms-extensions -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 int foo() {
5 static_assert(sizeof(__FUNCDNAME__) == 12, "?foo@@YAHXZ");
6 return 0;
9 // Within templates.
10 template <typename T>
11 int baz() {
12 static_assert(sizeof(__FUNCDNAME__) == 16, "??$baz@H@@YAHXZ");
14 return 0;
17 struct A {
18 A() {
19 static_assert(sizeof(__FUNCDNAME__) == 13, "??0A@@QAE@XZ");
21 ~A() {
22 static_assert(sizeof(__FUNCDNAME__) == 13, "??1A@@QAE@XZ");
26 int main() {
27 static_assert(sizeof(__FUNCDNAME__) == 5, "main");
29 baz<int>();
31 return 0;