mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 08:57:43 +08:00
- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
36 lines
446 B
C
36 lines
446 B
C
// RUN: %clang_cc1 < %s -emit-llvm
|
|
|
|
void test1(int x) {
|
|
switch (x) {
|
|
case 111111111111111111111111111111111111111:
|
|
bar();
|
|
}
|
|
}
|
|
|
|
// Mismatched type between return and function result.
|
|
int test2() { return; }
|
|
void test3() { return 4; }
|
|
|
|
|
|
void test4() {
|
|
bar:
|
|
baz:
|
|
blong:
|
|
bing:
|
|
;
|
|
|
|
// PR5131
|
|
static long x = &&bar - &&baz;
|
|
static long y = &&baz;
|
|
&&bing;
|
|
&&blong;
|
|
if (y)
|
|
goto *y;
|
|
|
|
goto *x;
|
|
}
|
|
|
|
// PR3869
|
|
int test5(long long b) { goto *b; }
|
|
|