[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenObjC / debug-info-self.m
blob0391ac477d64414239b70faae27bed5865acd645
1 // RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -debug-info-kind=limited %s -o - | FileCheck %s
2 // self and _cmd are marked as DW_AT_artificial. 
3 // myarg is not marked as DW_AT_artificial.
5 @interface MyClass {
7 - (id)init:(int) myarg;
8 @end
10 @implementation MyClass
11 - (id) init:(int) myarg
13     return self;
15 @end
17 // CHECK: !DILocalVariable(name: "self", arg: 1,
18 // CHECK-SAME:             scope: ![[CTOR:[0-9]+]]
19 // CHECK-NOT:              line:
20 // CHECK-SAME:             flags: DIFlagArtificial | DIFlagObjectPointer{{[,)]}}
21 // CHECK: !DILocalVariable(name: "_cmd", arg: 2,
22 // CHECK-SAME:             scope: ![[CTOR]]
23 // CHECK-NOT:              line:
24 // CHECK-SAME:             flags: DIFlagArtificial{{[,)]}}
25 // CHECK: !DILocalVariable(name: "myarg", arg: 3,
26 // CHECK-SAME:             scope: ![[CTOR]]
27 // CHECK-SAME:             line: 11
28 // CHECK-NOT:              flags:
29 // CHECK-SAME:             ){{$}}