-
-
Save dluciv/ce28eb4cea180297f2a7827bf5893257 to your computer and use it in GitHub Desktop.
Clang unicode identifiers and macros test, looks working without any additional efforts. GCC fails to eat this.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __RUC_UTF8_H__ | |
#define __RUC_UTF8_H__ | |
#define целое int | |
#define пустое void | |
#define вернуть return | |
#define если if | |
#define иначе else | |
#define главное main | |
#ifdef __cplusplus | |
#define класс class | |
#define публичные public | |
#define стд std | |
#define вывод cout | |
#define кнцс endl | |
#endif | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ru_kw_c_utf8.h" | |
#include <stdio.h> | |
целое плюс1(целое число) | |
{ | |
целое говно = 1; | |
целое дерьмо = 1 + число; | |
вернуть дерьмо; | |
} | |
целое главное() | |
{ | |
printf("1 + 1 = %d, жопа.\n", плюс1(1)); | |
вернуть 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ru_kw_c_utf8.h" | |
#include <iostream> | |
класс Херня | |
{ | |
публичные: | |
Херня(целое число) | |
{ | |
стд::вывод << "Конструктор херни от " << число << стд::кнцс; | |
} | |
}; | |
целое главное() | |
{ | |
Херня(1); | |
вернуть 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment