diff --git a/asn1c/tests/README b/asn1c/tests/README index b7fb56054f4da964e787fefe81748e3d62bf2f2f..99c45e44c31e6f530d140b8cb670f6a83f784c5a 100644 --- a/asn1c/tests/README +++ b/asn1c/tests/README @@ -1,6 +1,6 @@ -This is a very funny test automation. The name of the check-*.c file is used -as a pointer to the file in ../..//tests/*-*.asn1. This file is compiled -using the asn1c from above directory. Then, everything is build together -in a temporary directory with a check-*.c used as a testing engine. +This is a very funny test automation. The name of the check-N.c file is used +as a pointer to the file in ../../tests/N-*.asn1. This file is compiled +using the asn1c compiler from above directory. Then, everything is build +together in a temporary directory with a check-N.c used as a testing engine. diff --git a/asn1c/tests/check-42.cc b/asn1c/tests/check-42.cc new file mode 100644 index 0000000000000000000000000000000000000000..c2ec29ba0199b327d3cc3a5250a91adc3b2277b4 --- /dev/null +++ b/asn1c/tests/check-42.cc @@ -0,0 +1,20 @@ +/* + * This file checks that the output may be compiled by the C++ compiler. + */ +#undef NDEBUG +#include <stdio.h> +#include <stdlib.h> +#include <sys/types.h> +#include <string.h> +#include <assert.h> + +#include <VariablePart.h> + +int +main() { + VariablePart_t t; + + t.present = VariablePart_PR_vrange; + + return 0; +}