~mdw
/
sod
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc/clang.tex: Fix incorrect description category.
[sod]
/
test
/
bad.sod
diff --git
a/test/bad.sod
b/test/bad.sod
index
4ca273e
..
6451482
100644
(file)
--- a/
test/bad.sod
+++ b/
test/bad.sod
@@
-39,8
+39,10
@@
class Wrong {
int x = 2;
wrong.x = 7;
int x = 2;
wrong.x = 7;
+ int x;
wrong.x = 3;
wrong.x = 3;
- int filler, y(), .z[45], q;
+ const char *x = "hello";
+ int x, y(), .z[45], q;
int wrong.fizzbuzz(int n) extern;
wtf.y = 19, wrong.z = 69, x.= r;
int (*bogon)(const char *) { return strlen(p); }
int wrong.fizzbuzz(int n) extern;
wtf.y = 19, wrong.z = 69, x.= r;
int (*bogon)(const char *) { return strlen(p); }
@@
-86,3
+88,7
@@
class dismissed;
class hopeful: dismissed
;
class hopeful: dismissed
;
+
+[nick = st] class Static: SodObject { int x, y; }
+instance Static noinit;
+instance Static dupinit: st.x = 1, st.x = 2, st.y = 3;