Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/pr35503-2.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
3 | 3 |
4 void f(int *__restrict x, int *y, int *__restrict z, int *w); | 4 void f(int *__restrict x, int *y, int *__restrict z, int *w); |
5 | 5 |
6 void foo(int alpha, int beta) | 6 void foo(int alpha, int beta) |
7 { | 7 { |
8 f (&alpha, &beta, &alpha, &alpha); /* { dg-warning "passing argument 1 to restrict-qualified parameter aliases with arguments 3, 4" } */ | 8 f (&alpha, &beta, &alpha, &alpha); /* { dg-warning "passing argument 1 to 'restrict'-qualified parameter aliases with arguments 3, 4" } */ |
9 | 9 |
10 /* { dg-begin-multiline-output "" } | 10 /* { dg-begin-multiline-output "" } |
11 f (&alpha, &beta, &alpha, &alpha); | 11 f (&alpha, &beta, &alpha, &alpha); |
12 ^~~~~~ ~~~~~~ ~~~~~~ | 12 ^~~~~~ ~~~~~~ ~~~~~~ |
13 { dg-end-multiline-output "" } */ | 13 { dg-end-multiline-output "" } */ |