aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c
blob: 9bff07991a93bcf434343a194cad80afa2ccbf5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-fcilkplus" } */

int A[10];

int main () {

  /* C compiler uses the term "undeclared" whereas C++ compiler uses
    "not declared".  Thus, grepping for declared seem to be the easiest.  */
  char c = (char)N; /* { dg-error "declared" } */
  short s = (short)N;
  long l = (long)N;
  A[l:s:c];
}

/* { dg-message "note: each" "defined" { target c }  10 } */