]> granicus.if.org Git - clang/commitdiff
Add a Microsoft C test following r131201.
authorFrancois Pichet <pichet2000@gmail.com>
Wed, 11 May 2011 22:28:19 +0000 (22:28 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Wed, 11 May 2011 22:28:19 +0000 (22:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131202 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/MicrosoftExtensions.c

index cb9fee9dc1d4960d217b495dfdca91b841d3af67..7438f7f5de4e27392af077f0d899108a3fe3d36e 100644 (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;
+}