blob: 8835c7aa2c9e4630a41286f72f045be32a3ff80b [file] [log] [blame]
Matt Beaumont-Gaya7d66b52012-03-19 18:47:12 +00001// 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'
Aaron Ballman4207eda2012-03-18 03:10:37 +00004
Matt Beaumont-Gaya7d66b52012-03-19 18:47:12 +00005#line 100 "doh.c"
Aaron Ballman4207eda2012-03-18 03:10:37 +00006#import "pp-record.h" // expected-error {{#import of type library is an unsupported Microsoft feature}}
7
8// Test attributes
Matt Beaumont-Gaya7d66b52012-03-19 18:47:12 +00009#line 200 "doh.c"
Aaron Ballman4207eda2012-03-18 03:10:37 +000010#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"
Matt Beaumont-Gaya7d66b52012-03-19 18:47:12 +000013// 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"
Aaron Ballman4207eda2012-03-18 03:10:37 +000015#import "pp-record.h" no_namespace \
16 auto_rename \
Matt Beaumont-Gaya7d66b52012-03-19 18:47:12 +000017 auto_search