Home | History | Annotate | Download | only in Rewriter
      1 // RUN: %clang_cc1 -E %s -o %t.mm
      2 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %t.mm -o - | FileCheck %s 
      3 
      4 @interface Foo {
      5 @private
      6     int first;
      7     int :1;
      8     int third :1;
      9     int :1;
     10     int fifth :1;
     11 }
     12 @end
     13 @implementation Foo 
     14 @end
     15 
     16 // CHECK: struct Foo_IMPL {
     17 // CHECK-NEXT:        int first;
     18 // CHECK-NEXT:        int : 1;
     19 // CHECK-NEXT:        int third : 1;
     20 // CHECK-NEXT:        int : 1;
     21 // CHECK-NEXT:        int fifth : 1;
     22 // CHECK-NEXT:        char : 0;
     23 // CHECK-NEXT: };
     24