xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/debug-info-variadic-method.m (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1// RUN: %clang_cc1 -o - -emit-llvm -g %s | FileCheck %s
2
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{
13  // CHECK: ![[NUM:[^,]*]], null, null, null} ; [ DW_TAG_subroutine_type ]
14  // CHECK: ![[NUM]] = {{!{null, ![^,]*, ![^,]*, ![^,]*, null}}}
15}
16@end
17