[cfe-commits] r131202 - /cfe/trunk/test/Sema/MicrosoftExtensions.c
Francois Pichet
pichet2000 at gmail.com
Wed May 11 15:28:19 PDT 2011
Author: fpichet
Date: Wed May 11 17:28:19 2011
New Revision: 131202
URL: http://llvm.org/viewvc/llvm-project?rev=131202&view=rev
Log:
Add a Microsoft C test following r131201.
Modified:
cfe/trunk/test/Sema/MicrosoftExtensions.c
Modified: cfe/trunk/test/Sema/MicrosoftExtensions.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/MicrosoftExtensions.c?rev=131202&r1=131201&r2=131202&view=diff
==============================================================================
--- cfe/trunk/test/Sema/MicrosoftExtensions.c (original)
+++ cfe/trunk/test/Sema/MicrosoftExtensions.c Wed May 11 17:28:19 2011
@@ -79,3 +79,11 @@
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;
+}
More information about the cfe-commits
mailing list