ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
string
with_gc
Last change
on this file since f7d59bf was 843054c2, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago |
licencing: seventh groups of files
|
-
Property mode
set to
100644
|
File size:
476 bytes
|
Line | |
---|
1 | int @max = 3;
|
---|
2 |
|
---|
3 | int main() {
|
---|
4 | int x;
|
---|
5 | type @type(type t); // compiler intrinsic
|
---|
6 | type @widest(type t);
|
---|
7 | @type(x) *y; // gcc: typeof(x) *y;
|
---|
8 | const @widest(double) *w; // gcc: const typeof(x) *w;
|
---|
9 | * @type(3 + 4) z; // cfa declaration syntax
|
---|
10 | y = @max;
|
---|
11 | z = @max(x) + @size(int);
|
---|
12 | y = @min(3 + 4);
|
---|
13 | if ( @const(x) ) { }
|
---|
14 | if ( @volatile(y) ) { }
|
---|
15 | if ( @extern(y) ) { }
|
---|
16 | if ( @static(y) ) { }
|
---|
17 | @max;
|
---|
18 | }
|
---|
19 |
|
---|
20 | int @foo(int) {
|
---|
21 | return 7;
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.