annotate gcc/testsuite/gcc.dg/funcdef-attr-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* The declarator in a function definition should be able to take the
kono
parents:
diff changeset
2 form of an attributed function declarator, not just a plain
kono
parents:
diff changeset
3 function declarator. This was formerly allowed by some of the code
kono
parents:
diff changeset
4 but then the wrong constraint checks were made because other code
kono
parents:
diff changeset
5 didn't recognise the declarator as being that of the function
kono
parents:
diff changeset
6 definition. */
kono
parents:
diff changeset
7 /* Origin: Joseph Myers <jsm@polyomino.org.uk>. */
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 int (__attribute__((const)) x) (a, b)
kono
parents:
diff changeset
10 int a;
kono
parents:
diff changeset
11 int b;
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 return a + b;
kono
parents:
diff changeset
14 }