mirror of
https://github.com/verilator/verilator.git
synced 2025-01-07 15:17:36 +00:00
29 lines
547 B
C++
29 lines
547 B
C++
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
// any use, without warranty, 2022 by Wilson Snyder.
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
#include <iostream>
|
|
|
|
extern "C" int import_func0() {
|
|
static int c = 0;
|
|
return ++c;
|
|
}
|
|
|
|
extern "C" int import_func1() {
|
|
static int c = 0;
|
|
return ++c;
|
|
}
|
|
extern "C" int import_func2() {
|
|
static int c = 0;
|
|
return ++c;
|
|
}
|
|
|
|
extern "C" int import_func3() {
|
|
static int c = 0;
|
|
return ++c;
|
|
}
|
|
extern "C" int import_func4() {
|
|
static int c = 0;
|
|
return ++c;
|
|
}
|