mirror of
https://github.com/claunia/clion-custom-defined-compiler-examples.git
synced 2025-12-16 19:24:48 +00:00
SDCC/STM8 added
This commit is contained in:
22
CMake-SDCC/cmain.c
Normal file
22
CMake-SDCC/cmain.c
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#pragma message ("Compile C")
|
||||
int getInt();
|
||||
long long fn() {
|
||||
return 3ll;
|
||||
}
|
||||
|
||||
void fan(unsigned int x) {
|
||||
const int res = x == 123;
|
||||
if (x == 456) {}
|
||||
}
|
||||
|
||||
int main() {
|
||||
puts("Hello, World from C!");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int putchar(int c) {
|
||||
//fake function
|
||||
return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user