re PR c++/50787 (reference fails to bind directly to variable)
PR c++/50787 * g++.dg/init/ref20.C: New. From-SVN: r180206
This commit is contained in:
parent
3f3af9dfcc
commit
2bb385d908
@ -1,3 +1,8 @@
|
||||
2011-10-19 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/50787
|
||||
* g++.dg/init/ref20.C: New.
|
||||
|
||||
2011-10-19 Kai Tietz <ktietz@redhat.com>
|
||||
|
||||
PR middle-end/50795
|
||||
|
8
gcc/testsuite/g++.dg/init/ref20.C
Normal file
8
gcc/testsuite/g++.dg/init/ref20.C
Normal file
@ -0,0 +1,8 @@
|
||||
// PR c++/50787
|
||||
// { dg-do run }
|
||||
|
||||
int main() {
|
||||
const int Ci = 0;
|
||||
const int &rCi = Ci;
|
||||
if (!(&Ci == &rCi)) __builtin_abort();
|
||||
}
|
Loading…
Reference in New Issue
Block a user