forked from OSchip/llvm-project
Test the C front-end, not the C++ front-end.
llvm-svn: 42350
This commit is contained in:
parent
31d319dce7
commit
0bcbceb647
|
@ -1,4 +1,4 @@
|
|||
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.noinline
|
||||
// RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep llvm.noinline
|
||||
|
||||
static int bar(int x, int y) __attribute__((noinline));
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.global.annotations
|
||||
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.var.annotation | count 3
|
||||
// RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep llvm.global.annotations
|
||||
// RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep llvm.var.annotation | count 3
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep noalias
|
||||
// RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep noalias
|
||||
|
||||
void foo(int * __restrict myptr1, int * myptr2) {
|
||||
myptr1[0] = 0;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %llvmgxx -S -emit-llvm %s -o - | grep llvm.gcroot
|
||||
// RUN: %llvmgxx -S -emit-llvm %s -o - | grep llvm.gcroot | count 6
|
||||
// RUN: %llvmgcc -S -emit-llvm %s -o - | grep llvm.gcroot
|
||||
// RUN: %llvmgcc -S -emit-llvm %s -o - | grep llvm.gcroot | count 6
|
||||
|
||||
typedef struct foo_s
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue