ADT
arm-eh
ast-experimental
enum
forall-pointer-decay
jacob/cs343-translation
new-ast-unique-expr
pthread-emulation
qualifiedEnum
|
Last change
on this file since 8e2cb4a was 4d23dd2, checked in by Thierry Delisle <tdelisle@…>, 5 years ago |
|
Added tests cases for some of the opened tickets
|
-
Property mode
set to
100644
|
|
File size:
290 bytes
|
| Line | |
|---|
| 1 | // Trac ticket
|
|---|
| 2 | // https://cforall.uwaterloo.ca/trac/ticket/194
|
|---|
| 3 |
|
|---|
| 4 | forall( dtype T | sized(T) ) T * foo( void ) {
|
|---|
| 5 | printf( "foo1\n" );
|
|---|
| 6 | return (T *)0;
|
|---|
| 7 | }
|
|---|
| 8 | forall( dtype T | sized(T) ) T & foo( void ) {
|
|---|
| 9 | printf( "foo2\n" );
|
|---|
| 10 | return (T &)*(T *)0;
|
|---|
| 11 | }
|
|---|
| 12 | int main( void ) {
|
|---|
| 13 | int * i = foo();
|
|---|
| 14 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.