xaizek / c-test-auto-reg (License: Unspecified) (since 2018-12-07)
Examples of automatic test registration in plain C as employed by stic.
<root> / fixtures-weak / main.c (dd87d85fedf5a363396432782d684b14d34902da) (1,087B) (mode 100644) [raw]
typedef void ft(void);

ft f0  __attribute__((weak));
ft f1  __attribute__((weak));
ft f2  __attribute__((weak));
ft f3  __attribute__((weak));
ft f4  __attribute__((weak));
ft f5  __attribute__((weak));
ft f6  __attribute__((weak));
ft f7  __attribute__((weak));
ft f8  __attribute__((weak));
ft f9  __attribute__((weak));
ft f10 __attribute__((weak));
ft f11 __attribute__((weak));
ft f12 __attribute__((weak));
ft f13 __attribute__((weak));
ft f14 __attribute__((weak));
ft f15 __attribute__((weak));
ft f16 __attribute__((weak));
ft f17 __attribute__((weak));
ft f18 __attribute__((weak));
ft f19 __attribute__((weak));
ft f20 __attribute__((weak));

int
main(void)
{
    if(f0 ) f0 ();
    if(f1 ) f1 ();
    if(f2 ) f2 ();
    if(f3 ) f3 ();
    if(f4 ) f4 ();
    if(f5 ) f5 ();
    if(f6 ) f6 ();
    if(f7 ) f7 ();
    if(f8 ) f8 ();
    if(f9 ) f9 ();
    if(f10) f10();
    if(f11) f11();
    if(f12) f12();
    if(f13) f13();
    if(f14) f14();
    if(f15) f15();
    if(f16) f16();
    if(f17) f17();
    if(f18) f18();
    if(f19) f19();
    if(f20) f20();
    return 0;
}
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/c-test-auto-reg

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/c-test-auto-reg

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master