summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common
diff options
context:
space:
mode:
authorbviyer <bviyer@138bc75d-0d04-0410-961f-82ee72b054a4>2013-06-07 22:16:24 +0000
committerbviyer <bviyer@138bc75d-0d04-0410-961f-82ee72b054a4>2013-06-07 22:16:24 +0000
commitbfc83720d5f8d8dbd1caf3d484312cd461e366cc (patch)
treea280811b021c9ee416d3b6a275ee4b0d32bdb3fd /gcc/testsuite/c-c++-common
parent55fd7c318073cf0b30d73188bb4740af4ca436fe (diff)
downloadgcc-bfc83720d5f8d8dbd1caf3d484312cd461e366cc.tar.gz
Fixed PR 57541.
gcc/c/ChangeLog 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> * c-array-notation.c (expand_array_notation_exprs): Added ARRAY_NOTATION_REF case. gcc/testsuite/ChangeLog 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> PR middle-end/57541 * c-c++-common/cilk-plus/AN/pr57541.c: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199837 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/c-c++-common')
-rwxr-xr-xgcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c
new file mode 100755
index 00000000000..cabdb2376e6
--- /dev/null
+++ b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-options "-fcilkplus" } */
+
+int A[10];
+
+int main () {
+ char c = (char)N; /* { dg-error "undeclared" } */
+ short s = (short)N;
+ long l = (long)N;
+ A[l:s:c];
+}
+
+/* { dg-message "note: each" "defined" { target *-*-* } 7 } */
+