Skip to content

Instantly share code, notes, and snippets.

@dluciv
Last active December 7, 2016 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dluciv/ce28eb4cea180297f2a7827bf5893257 to your computer and use it in GitHub Desktop.
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.
#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
#include "ru_kw_c_utf8.h"
#include <stdio.h>
целое плюс1(целое число)
{
целое говно = 1;
целое дерьмо = 1 + число;
вернуть дерьмо;
}
целое главное()
{
printf("1 + 1 = %d, жопа.\n", плюс1(1));
вернуть 0;
}
#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