Skip to content
Snippets Groups Projects
Commit 4573cd05 authored by benjamin.franksen's avatar benjamin.franksen
Browse files

test: adapted to deprecation of foreign declarations

parent dcd52eae
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,6 @@ use Test::More; ...@@ -7,7 +7,6 @@ use Test::More;
my $success = { my $success = {
cast => 0, cast => 0,
exOpt_DuplOpt => 0, exOpt_DuplOpt => 0,
foreignTypes => 0,
include_windows_h => 0, include_windows_h => 0,
member => 0, member => 0,
namingConflict => 0, namingConflict => 0,
...@@ -19,6 +18,7 @@ my $success = { ...@@ -19,6 +18,7 @@ my $success = {
my $warning = { my $warning = {
exOpt_UnrecOpt => 1, exOpt_UnrecOpt => 1,
foreignTypes => 1,
state_not_reachable => 3, state_not_reachable => 3,
syncq_no_size => 1, syncq_no_size => 1,
}; };
......
...@@ -20,7 +20,7 @@ monitor multiple2; /* should all have monitored flag */ ...@@ -20,7 +20,7 @@ monitor multiple2; /* should all have monitored flag */
ss test { ss test {
state test { state test {
when (FALSE) { when (FALSE) {
%%multiple2[0] = 0; multiple2[0] = 0;
} state test } state test
} }
} }
...@@ -13,8 +13,6 @@ option +r; ...@@ -13,8 +13,6 @@ option +r;
int x = 0; int x = 0;
assign x; assign x;
foreign pvStatERROR;
#define NTESTS 3 #define NTESTS 3
entry { entry {
......
...@@ -10,8 +10,6 @@ program declTest ...@@ -10,8 +10,6 @@ program declTest
option +s; option +s;
foreign MAX_STRING_SIZE;
int *(*(*complicated)[2][3])[1] = 0; int *(*(*complicated)[2][3])[1] = 0;
evflag ef; evflag ef;
...@@ -19,11 +17,7 @@ evflag ef; ...@@ -19,11 +17,7 @@ evflag ef;
/* struct member access */ /* struct member access */
%%struct r { int x; } rv; %%struct r { int x; } rv;
/* declare the variable and the tag to avoid warnings */ typename TS_STAMP ts;
foreign rv, x;
%%TS_STAMP ts;
foreign ts;
int var; int var;
assign var; assign var;
......
...@@ -9,8 +9,6 @@ program foreignTypesTest ...@@ -9,8 +9,6 @@ program foreignTypesTest
%%enum enum_t { zero, one, two }; %%enum enum_t { zero, one, two };
%%typedef short typedef_t; %%typedef short typedef_t;
foreign zero, one, two;
struct struct_t s = {1, {0.1}}; struct struct_t s = {1, {0.1}};
union union_t u = {13}; union union_t u = {13};
enum enum_t e = one; enum enum_t e = one;
......
...@@ -14,8 +14,6 @@ option +s; ...@@ -14,8 +14,6 @@ option +s;
%%int shared = 0; %%int shared = 0;
%%epicsMutexId mutex; %%epicsMutexId mutex;
foreign shared, mutex;
int anon; int anon;
assign anon; assign anon;
......
...@@ -16,8 +16,6 @@ assign y to ""; ...@@ -16,8 +16,6 @@ assign y to "";
evflag efx; evflag efx;
sync x to efx; sync x to efx;
foreign MAX_STRING_SIZE;
#define MAX_TESTS 10 #define MAX_TESTS 10
entry { entry {
......
...@@ -15,8 +15,6 @@ assign x to "pv1"; ...@@ -15,8 +15,6 @@ assign x to "pv1";
assign y to ""; assign y to "";
assign z to "pv1"; assign z to "pv1";
foreign pvStatOK;
#define NTESTS 30 #define NTESTS 30
entry { entry {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment