[LV] Add test showing debug output for loops with uncountable BTCs.
[llvm-project.git] / clang / test / SemaCXX / msvc-pragma-function-no-builtin-attr.cpp
blob7262ffd079a92ad88de9f56cdc2d67f23aaf4d78
1 // RUN: %clang_cl -fms-compatibility -Xclang -ast-dump -fsyntax-only -- %s | FileCheck %s
3 extern "C" __inline float __cdecl fabsf( float _X);
4 // CHECK: FunctionDecl {{.*}} fabsf
5 #pragma function(fabsf)
6 __inline float __cdecl fabsf( float _X)
8 return 0;
10 // CHECK: FunctionDecl {{.*}} fabsf
11 // CHECK: NoBuiltinAttr {{.*}} <<invalid sloc>> Implicit fabsf
13 int bar() {
14 return 0;
16 // CHECK: FunctionDecl {{.*}} bar
17 // CHECK: NoBuiltinAttr {{.*}} <<invalid sloc>> Implicit fabsf
19 struct A {
20 int foo() = delete;
21 // CHECK: CXXMethodDecl {{.*}} foo {{.*}} delete
22 // CHECK-NOT: NoBuiltinAttr
23 A() = default;
24 // CHECK: CXXConstructorDecl {{.*}} A {{.*}} default
25 // CHECK-NOT: NoBuiltinAttr
28 int main() {
29 return 0;
31 // CHECK: FunctionDecl {{.*}} main
32 // CHECK: NoBuiltinAttr {{.*}} <<invalid sloc>> Implicit fabsf