22 lines · plain
1// RUN: %clangxx_tsan -O0 %s -o %t -framework Foundation && %run %t 2>&1 | FileCheck %s2// RUN: %clangxx_tsan -O1 %s -o %t -framework Foundation && %run %t 2>&1 | FileCheck %s3// RUN: %clangxx_tsan -O2 %s -o %t -framework Foundation && %run %t 2>&1 | FileCheck %s4// RUN: %clangxx_tsan -O3 %s -o %t -framework Foundation && %run %t 2>&1 | FileCheck %s5 6#import <Foundation/Foundation.h>7 8@interface MyClass : NSObject9@property float a;10@property double b;11@property long double c;12@end13 14@implementation MyClass15@end16 17int main() {18 NSLog(@"Hello world");19}20 21// CHECK: Hello world22