1//===-- main.m -------------------------------------------*- Objective-C-*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#import <Foundation/Foundation.h>
10
11@interface VarClass : NSObject
12- (id) lottaArgs: (id) first, ...;
13@end
14
15@implementation VarClass
16- (id) lottaArgs: (id) first, ...
17{
18  return first;
19}
20@end
21
22int
23main()
24{
25  VarClass *my_var = [[VarClass alloc] init];
26  id something = [my_var lottaArgs: @"111", @"222", nil];
27  NSLog (@"%@ - %@", my_var, something); //% self.expect("expression -O -- [my_var lottaArgs:@\"111\", @\"222\", nil]", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["111"])
28  return 0;
29}
30
31