summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/debug-info-variadic-method.m
blob: 828d4dc4a16427a026bfda937564116a909b4f78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -o - -emit-llvm -g %s | FileCheck %s

// This test verifies that variadic ObjC methods get the
// DW_TAG_unspecified_parameter marker.

@interface Foo
- (void) Bar: (int) n, ...;
@end

@implementation Foo
- (void) Bar: (int) n, ...
{
  // CHECK: !DISubroutineType(types: ![[NUM:[0-9]+]])
  // CHECK: ![[NUM]] = {{!{null, ![^,]*, ![^,]*, ![^,]*, null}}}
}
@end
OpenPOWER on IntegriCloud