[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-limited.cpp
blob4467d20f3de4b5aff85dde608bd9642793c7a7a6
1 // RUN: %clang -flimit-debug-info -emit-llvm -g -S %s -o - | FileCheck %s
2 // RUN: %clang -flimit-debug-info -emit-llvm -g -S %s -o - | FileCheck --check-prefix=CHECK-C %s
4 // CHECK: !DICompositeType(tag: DW_TAG_class_type, name: "A"
5 // CHECK-NOT: DIFlagFwdDecl
6 // CHECK-SAME: ){{$}}
7 class A {
8 public:
9 int z;
12 A *foo (A* x) {
13 A *a = new A(*x);
14 return a;
17 // CHECK: !DICompositeType(tag: DW_TAG_class_type, name: "B"
18 // CHECK-SAME: flags: DIFlagFwdDecl
20 class B {
21 public:
22 int y;
25 extern int bar(B *b);
26 int baz(B *b) {
27 return bar(b);
31 // CHECK-C: !DICompositeType(tag: DW_TAG_structure_type, name: "C"
32 // CHECK-C-SAME: flags: DIFlagFwdDecl
34 struct C {
37 C (*x)(C);