Move test in a specific folder
This commit is contained in:
16
example/section.c
Normal file
16
example/section.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int var __attribute__((section("custom_data"))) = 1337;
|
||||
|
||||
__attribute__((section("custom_text")))
|
||||
void custom()
|
||||
{
|
||||
printf("Hello from custom() in custom section!\n");
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("var = %d\n", var);
|
||||
custom();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user