aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/array-constraint.c
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-12-10 22:44:33 +0000
committerSteve Naroff <snaroff@apple.com>2007-12-10 22:44:33 +0000
commit2fdc3749097a581567dbd9fe66c48c0458bd3e34 (patch)
tree73000fdf833e56f73c02a685b5a82f882c53bd61 /test/Sema/array-constraint.c
parent76315cabb3d65145dd1f49696c725c04df378cd5 (diff)
Add support for initializing char arrays from string literals.
Adapted from a patch by Anders Carlsson. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/array-constraint.c')
-rw-r--r--test/Sema/array-constraint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/array-constraint.c b/test/Sema/array-constraint.c
index ab2c969434..f281df1aff 100644
--- a/test/Sema/array-constraint.c
+++ b/test/Sema/array-constraint.c
@@ -45,7 +45,7 @@ typedef int TA[I]; // expected-error {{variable length array declared outside of
void strFunc(char *);
const char staticAry[] = "test";
int checkStaticAry() {
- strFunc(staticAry); // expected-warning{{passing 'char const []' to 'char *' discards qualifiers}}
+ strFunc(staticAry); // expected-warning{{passing 'char const [5]' to 'char *' discards qualifiers}}
}