Matt Beaumont-Gay | a7d66b5 | 2012-03-19 18:47:12 +0000 | [diff] [blame^] | 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' |
Aaron Ballman | 4207eda | 2012-03-18 03:10:37 +0000 | [diff] [blame] | 4 | |
Matt Beaumont-Gay | a7d66b5 | 2012-03-19 18:47:12 +0000 | [diff] [blame^] | 5 | #line 100 "doh.c" |
Aaron Ballman | 4207eda | 2012-03-18 03:10:37 +0000 | [diff] [blame] | 6 | #import "pp-record.h" // expected-error {{#import of type library is an unsupported Microsoft feature}} |
| 7 | |
| 8 | // Test attributes |
Matt Beaumont-Gay | a7d66b5 | 2012-03-19 18:47:12 +0000 | [diff] [blame^] | 9 | #line 200 "doh.c" |
Aaron Ballman | 4207eda | 2012-03-18 03:10:37 +0000 | [diff] [blame] | 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" |
Matt Beaumont-Gay | a7d66b5 | 2012-03-19 18:47:12 +0000 | [diff] [blame^] | 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" |
Aaron Ballman | 4207eda | 2012-03-18 03:10:37 +0000 | [diff] [blame] | 15 | #import "pp-record.h" no_namespace \ |
| 16 | auto_rename \ |
Matt Beaumont-Gay | a7d66b5 | 2012-03-19 18:47:12 +0000 | [diff] [blame^] | 17 | auto_search |