1*0a6a1f1dSLionel Sambuc// RUN: %clang_cc1 -o - -emit-llvm -g %s | FileCheck %s
2*0a6a1f1dSLionel Sambuc
3*0a6a1f1dSLionel Sambuc// This test verifies that variadic ObjC methods get the
4*0a6a1f1dSLionel Sambuc// DW_TAG_unspecified_parameter marker.
5*0a6a1f1dSLionel Sambuc
6*0a6a1f1dSLionel Sambuc@interface Foo
7*0a6a1f1dSLionel Sambuc- (void) Bar: (int) n, ...;
8*0a6a1f1dSLionel Sambuc@end
9*0a6a1f1dSLionel Sambuc
10*0a6a1f1dSLionel Sambuc@implementation Foo
11*0a6a1f1dSLionel Sambuc- (void) Bar: (int) n, ...
12*0a6a1f1dSLionel Sambuc{
13*0a6a1f1dSLionel Sambuc  // CHECK: ![[NUM:[^,]*]], null, null, null} ; [ DW_TAG_subroutine_type ]
14*0a6a1f1dSLionel Sambuc  // CHECK: ![[NUM]] = {{!{null, ![^,]*, ![^,]*, ![^,]*, null}}}
15*0a6a1f1dSLionel Sambuc}
16*0a6a1f1dSLionel Sambuc@end
17