summaryrefslogtreecommitdiffstats
path: root/test/Index/t2.m
blob: 00d2f1d92b05ccca0887518d597738113ebb2c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "objc.h"

static void foo() {
  Sub *sub;
  int x = [sub my_var];
  [sub my_method:x];
  [Sub my_method:x];
}

@implementation Sub
-(void) my_method: (int)param {
}
@end

// Suppress 'no run line' failure.
// RUN: true
OpenPOWER on IntegriCloud