typedef struct S T;
S a = T(); // OK
-struct T * p; // error
+struct T * p; // ERROR - using typedef after struct
//case01
typedef bool short;// ERROR - .*
-
-
-
-
-
int a;
};
+int
main()
{
char buffer[1024];
// Build don't link:
// Special g++ Options: -fexceptions -Wall
+int
main() {
throw 1;
}
Type a;
Type b;
TypeKind c;
+
+int
main() {
a.kind = b.kind = c;
(a.kind = c) = b.kind; // gets bogus error
}
extern void foo();
+
+int
main () {
if (fn1() == Ok) { // WARNING -
foo();
}
}
+int
main()
{
tryIt("goodFile.txt");