]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/clang/test/Preprocessor/microsoft-import.c
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / Preprocessor / microsoft-import.c
CommitLineData
223e47cc
LB
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