Commit 7408b7b2 authored by dbarbera's avatar dbarbera
Browse files

Update llvm test file

parent fde0cc9d
#include <math.h>
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include "dataview-uniq.h"
extern void myfunction_startup();
extern void myfunction_start_something(asn1SccT_Int32 *);
extern void myfunction_mytimer();
volatile sig_atomic_t keep_going = 1;
void myfunction_RI_result_data(long long *val)
printf("[C] result_data: %lld\n", *val);
void myfunction_RI_set_mytimer(long long *val)
void myfunction_RI_set_mytimer(asn1SccT_Int32 *val)
printf("[C] SET MyTimer: %lld\n", *val);
alarm(((int)*val) / 1000);
void timer_expired()
keep_going = 0;
void myfunction_RI_reset_mytimer()
printf("RESET MyTimer\n");
......@@ -21,9 +38,12 @@ void myfunction_RI_reset_mytimer()
int main()
asn1SccT_Int32 test = 5;
signal(SIGALRM, timer_expired);
printf("[C Code] Running test\n");
while (keep_going);
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