summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/tsan/Darwin/objc-double-property.mm
blob: c99151d280487e786ea3346f242e8989c714be97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// RUN: %clangxx_tsan -O0 %s -o %t -framework Foundation && %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_tsan -O1 %s -o %t -framework Foundation && %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_tsan -O2 %s -o %t -framework Foundation && %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_tsan -O3 %s -o %t -framework Foundation && %run %t 2>&1 | FileCheck %s

#import <Foundation/Foundation.h>

@interface MyClass : NSObject
@property float a;
@property double b;
@property long double c;
@end

@implementation MyClass
@end

int main() {
  NSLog(@"Hello world");
}

// CHECK: Hello world
OpenPOWER on IntegriCloud