[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-auto-return.cpp
blob8b4c5cb3ad9b3e1f87d2058bb85b8b33db63f85c
1 // Test for debug info for C++11 auto return member functions
2 // RUN: %clang_cc1 -dwarf-version=5 -emit-llvm -triple x86_64-linux-gnu %s -o - \
3 // RUN: -O0 -disable-llvm-passes \
4 // RUN: -debug-info-kind=standalone \
5 // RUN: | FileCheck %s
7 // CHECK: !DISubprogram(name: "findMax",{{.*}}, type: ![[FUN_TYPE:[0-9]+]],{{.*}}
9 // CHECK: ![[FUN_TYPE]] = !DISubroutineType(types: ![[TYPE_NODE:[0-9]+]])
10 // CHECK-NEXT: ![[TYPE_NODE]] = !{![[DOUBLE_TYPE:[0-9]+]], {{.*}}
11 // CHECK-NEXT: ![[DOUBLE_TYPE]] = !DIBasicType(name: "double", {{.*}})
13 // CHECK: !DISubroutineType(types: ![[TYPE_DECL_NODE:[0-9]+]])
14 // CHECK-NEXT: ![[TYPE_DECL_NODE]] = !{![[AUTO_TYPE:[0-9]+]], {{.*}}
15 // CHECK-NEXT: ![[AUTO_TYPE]] = !DIBasicType(tag: DW_TAG_unspecified_type, name: "auto")
16 struct myClass {
17 auto findMax();
20 auto myClass::findMax() {
21 return 0.0;