llvm-for-llvmta/tools/clang/test/Tooling/Inputs/clang-diff-basic-src.cpp

34 lines
403 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
namespace src {
void foo() {
int x = 321;
}
void main() { foo(); };
const char *a = "foo";
typedef unsigned int nat;
int p = 1 * 2 * 3 * 4;
int squared = p * p;
class X {
const char *foo(int i) {
if (i == 0)
return "foo";
return 0;
}
public:
X(){};
int id(int i) { return i; }
};
}
void m() { int x = 0 + 0 + 0; }
int um = 1 * 2 + 3;
void f1() {{ (void) __func__;;; }}