Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.bugs/900519_05.C @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do run } // g++ 1.37.1 bug 900519_05 // g++ fails to allow the use of function-reference types. // cfront 2.0 passes this test. // keywords: function types, reference types typedef void (func_type) (int, int); typedef func_type& func_ref_type; void function (int arg1, int arg2) { } func_type& global_func_ref1 = function; int main () { return 0; }