view clang/test/CodeGenObjC/debug-info-variadic-method.m @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1d019706d866
children
line wrap: on
line source

// RUN: %clang_cc1 -o - -emit-llvm -debug-info-kind=limited %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