Commit b1ed4ed2 authored by Jakub Yaghob's avatar Jakub Yaghob
Browse files

adding one test testsxa-typedef for HA2, removing test2typedef from tests for HA2

parent 85fea314
......@@ -27,12 +27,12 @@ MAKE_TEST("1" "testla-num-n")
MAKE_TEST("1" "testla-str-n")
MAKE_TEST("2" "test1")
MAKE_TEST("2" "test2typedef")
MAKE_TEST("2" "testsxa-arr")
MAKE_TEST("2" "testsxa-enum")
MAKE_TEST("2" "testsxa-expr")
MAKE_TEST("2" "testsxa-stmt")
MAKE_TEST("2" "testsxa-struct")
MAKE_TEST("2" "testsxa-typedef")
MAKE_TEST("3" "test1")
MAKE_TEST("3" "test2typedef")
......
// testing TYPEIDF and typedef
// don't use new types - we don't fill the tables yet
//#include <stdio.h>
enum En {
ALPHA,
BETA = 729,
GAMMA
};
typedef enum En ent;
typedef struct Str* str_ptr;
struct Str {
const char* key;
void * next; // this should be str_ptr, we cannot use it yet
};
int main(int argc, char** argv)
{
FILE * myout; // this is a declaration
int a, b;
a = 1;
b = 2;
a * b; // this is not a declaration, this is an expression
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment