blob: d57019810839e5ce013aeafde9876c6ae8ff9ce7 [file] [log] [blame]
Douglas Katzman3459ce22015-10-08 04:24:12 +00001// RUN: %clang_cc1 -o - -emit-llvm -debug-info-kind=limited %s | FileCheck %s
Frederic Riss787d9d62014-08-12 04:42:23 +00002
3// This test verifies that variadic ObjC methods get the
4// DW_TAG_unspecified_parameter marker.
5
6@interface Foo
7- (void) Bar: (int) n, ...;
8@end
9
10@implementation Foo
11- (void) Bar: (int) n, ...
12{
Duncan P. N. Exon Smith9dd4e4e2015-04-29 16:40:08 +000013 // CHECK: !DISubroutineType(types: ![[NUM:[0-9]+]])
Duncan P. N. Exon Smithf04be1f2015-03-03 17:25:55 +000014 // CHECK: ![[NUM]] = {{!{null, ![^,]*, ![^,]*, ![^,]*, null}}}
Frederic Riss787d9d62014-08-12 04:42:23 +000015}
16@end