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 c2b9f21 was 9c14ae9, checked in by Rob Schluntz <rschlunt@…>, 9 years ago |
add thesis source
|
-
Property mode
set to
100644
|
File size:
478 bytes
|
Line | |
---|
1 | [int, int, int] f();
|
---|
2 | [int, [int, int], int] g();
|
---|
3 |
|
---|
4 | int main() {
|
---|
5 | ([int, double])f(); // (1)
|
---|
6 | ([int, [int], int])g(); // (2)
|
---|
7 | printf("%d %d\n", ([void, [int, int]])g()); // (3) -- should work and doesn't -- tries to construct void object, but should ignore that component in terms of the type of the tuple
|
---|
8 | // ([int, int, int, int])g(); // (4) -- should not work and doesn't
|
---|
9 | // ([int, [int, int, int]])g(); // (5) -- should not work and doesn't
|
---|
10 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.