repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag13787.d
blob
3a3a2c965b86d43fe5a9b94388b712126302aa3e
1
// REQUIRED_ARGS: -o-
2
/*
3
TEST_OUTPUT:
4
---
5
fail_compilation/diag13787.d(12): Error: cannot slice function pointer `& main`
6
fail_compilation/diag13787.d(13): Error: cannot index function pointer `& main`
7
---
8
*/
9
10
void
main
()
11
{
12
auto
a
= (&
main
)[
0
.
.1
];
13
auto
x
= (&
main
)[
0
];
14
}