source: src/tests/typeof.c@ d88f256a

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since d88f256a was 85517ddb, checked in by Rob Schluntz <rschlunt@…>, 9 years ago

resolve typeof in cast expressions, update typeof test

  • Property mode set to 100644
File size: 263 bytes
Line 
1int main() {
2 int *v1;
3 typeof(v1) v2;
4 typeof(*v1) v3[4];
5 char *v4[4];
6 typeof(typeof(char *)[4]) v5;
7 typeof (int *) v6;
8 typeof( int ( int, int p ) ) *v7;
9 typeof( [int] ( int, int p ) ) *v8;
10 (typeof(v1)) v2; // cast with typeof
11}
Note: See TracBrowser for help on using the repository browser.