From 4f868f75ecc455494a6bfe039aadc576ec2e5d5c Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 4 Jul 2013 15:04:25 +0000 Subject: [PATCH] Add missing expected-warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185644 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/const-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CodeGen/const-init.c b/test/CodeGen/const-init.c index 5f729b8df4..7d7ccae370 100644 --- a/test/CodeGen/const-init.c +++ b/test/CodeGen/const-init.c @@ -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" }; } -- 2.40.0