aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/interface-tu-variable.m
blob: 423a05f6dbc15e14dba3ab33f7df44a1231d4bff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// RUN: clang -fnext-runtime -emit-llvm -o %t %s
// RUN: grep 'two = global' %t &&
// RUN: grep 'ddd = common' %t &&
// RUN: grep 'III = common' %t

@interface XX
int x; 
int one=1; 
int two = 2; 
@end

@protocol PPP
int ddd;
@end

@interface XX(CAT)
  char * III;
@end


int main( int argc, const char *argv[] ) {
    return x+one+two;
}