r185644 - Add missing expected-warning.
Rafael Espindola
rafael.espindola at gmail.com
Thu Jul 4 08:04:25 PDT 2013
Author: rafael
Date: Thu Jul 4 10:04:25 2013
New Revision: 185644
URL: http://llvm.org/viewvc/llvm-project?rev=185644&view=rev
Log:
Add missing expected-warning.
Modified:
cfe/trunk/test/CodeGen/const-init.c
Modified: cfe/trunk/test/CodeGen/const-init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/const-init.c?rev=185644&r1=185643&r2=185644&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/const-init.c (original)
+++ cfe/trunk/test/CodeGen/const-init.c Thu Jul 4 10:04:25 2013
@@ -156,6 +156,6 @@ void g29() {
// CHECK: @g29.b = internal global [1 x i32] [i32 ptrtoint ([5 x i8]* @.str to i32)], align 4
// CHECK: @g29.c = internal global [1 x i32] [i32 97], align 4
static DCC_SRVR_NM a = { {"@"} };
- static int b[1] = { "asdf" };
+ static int b[1] = { "asdf" }; // expected-warning {{incompatible pointer to integer conversion initializing 'int' with an expression of type 'char [5]'}}
static int c[1] = { L"a" };
}
More information about the cfe-commits
mailing list