2014-08-12 12:42:23 +08:00
|
|
|
// 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, ...
|
|
|
|
{
|
2014-10-04 04:01:52 +08:00
|
|
|
// CHECK: metadata ![[NUM:[^,]*]], null, null, null} ; [ DW_TAG_subroutine_type ]
|
2014-08-12 12:42:23 +08:00
|
|
|
// CHECK: ![[NUM]] = {{metadata !{null, metadata ![^,]*, metadata ![^,]*, metadata ![^,]*, null}}}
|
|
|
|
}
|
|
|
|
@end
|