[K/N] Tests for function attributes in bitcode generator

Besides, well, tests themselves, this commit extends FileCheck infra to
make it possible to test bitcode for direct and reverse interop.
This commit is contained in:
Sergey Bogolepov
2021-10-06 15:16:26 +07:00
committed by Space
parent 851f4d86d9
commit fdd020eab6
7 changed files with 364 additions and 9 deletions
@@ -0,0 +1,20 @@
---
char char_id(char c) {
return c;
}
unsigned char unsigned_char_id(unsigned char c) {
return c;
}
short short_id(short s) {
return s;
}
unsigned short unsigned_short_id(unsigned short s) {
return s;
}
int callbackUser(int (*fn)(int, short)) {
return fn(5,5);
}