Add a Microsoft C test following r131201.

llvm-svn: 131202
This commit is contained in:
Francois Pichet 2011-05-11 22:28:19 +00:00
parent b796b632a8
commit 6f7289d9c5
1 changed files with 8 additions and 0 deletions

View File

@ -79,3 +79,11 @@ struct X0 {
enum : long long { // expected-warning{{enumeration types with a fixed underlying type are a Microsoft extension}}
SomeValue = 0x100000000
};
void pointer_to_integral_type_conv(char* ptr) {
char ch = (char)ptr;
short sh = (short)ptr;
ch = (char)ptr;
sh = (short)ptr;
}