Home | History | Annotate | Download | only in Preprocessor
      1 // RUN: %clang_cc1 -E -fms-compatibility %s 2>&1 | grep 'doh.c:100:2: error: #import of type library is an unsupported Microsoft feature'
      2 // RUN: %clang_cc1 -E -fms-compatibility %s 2>&1 | grep 'doh.c:200:2: error: #import of type library is an unsupported Microsoft feature'
      3 // RUN: %clang_cc1 -E -fms-compatibility %s 2>&1 | grep 'doh.c:300:2: error: #import of type library is an unsupported Microsoft feature'
      4 
      5 #line 100 "doh.c"
      6 #import "pp-record.h" // expected-error {{#import of type library is an unsupported Microsoft feature}}
      7 
      8 // Test attributes
      9 #line 200 "doh.c"
     10 #import "pp-record.h" no_namespace, auto_rename // expected-error {{#import of type library is an unsupported Microsoft feature}}
     11 
     12 // This will also fire the "#import of type library is an unsupported Microsoft feature"
     13 // error, but we can't use -verify because there's no way to put the comment on the proper line
     14 #line 300 "doh.c"
     15 #import "pp-record.h" no_namespace \
     16                       auto_rename \
     17                       auto_search
     18