diff options
author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-07-13 17:21:42 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-07-13 17:21:42 +0000 |
commit | 4ba675006b5a8edfc48b6a9bd3dcf54a70cc08f2 (patch) | |
tree | 48b44512b5db8ced345df4a1a56b5065cf2a14d9 /test/Frontend | |
parent | d7279c4c177bca357ef96ff1379fd9bc420bfe83 (diff) |
Diffstat (limited to 'test/Frontend')
-rw-r--r-- | test/Frontend/ir-support-codegen.ll | 8 | ||||
-rw-r--r-- | test/Frontend/ir-support-errors.ll | 8 | ||||
-rw-r--r-- | test/Frontend/lit.local.cfg | 1 | ||||
-rw-r--r-- | test/Frontend/preprocessed-output-macro-first-token.c | 5 | ||||
-rw-r--r-- | test/Frontend/unknown-pragmas.c | 4 |
5 files changed, 26 insertions, 0 deletions
diff --git a/test/Frontend/ir-support-codegen.ll b/test/Frontend/ir-support-codegen.ll new file mode 100644 index 000000000000..046b3af1c3ed --- /dev/null +++ b/test/Frontend/ir-support-codegen.ll @@ -0,0 +1,8 @@ +; RUN: %clang_cc1 -S -o - %s | FileCheck %s + +target triple = "x86_64-apple-darwin10" + +; CHECK: .globl _f0 +define i32 @f0() nounwind ssp { + ret i32 0 +} diff --git a/test/Frontend/ir-support-errors.ll b/test/Frontend/ir-support-errors.ll new file mode 100644 index 000000000000..98227d46f7ae --- /dev/null +++ b/test/Frontend/ir-support-errors.ll @@ -0,0 +1,8 @@ +; RUN: %clang_cc1 -S -o - %s 2>&1 | FileCheck %s + +target triple = "x86_64-apple-darwin10" + +define i32 @f0() nounwind ssp { +; CHECK: {{.*}}ir-support-errors.ll:7:16: error: expected value token + ret i32 x +} diff --git a/test/Frontend/lit.local.cfg b/test/Frontend/lit.local.cfg new file mode 100644 index 000000000000..4c135982a452 --- /dev/null +++ b/test/Frontend/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.c', '.cpp', '.m', '.mm', '.ll', '.bc'] diff --git a/test/Frontend/preprocessed-output-macro-first-token.c b/test/Frontend/preprocessed-output-macro-first-token.c new file mode 100644 index 000000000000..06b78c2e1fae --- /dev/null +++ b/test/Frontend/preprocessed-output-macro-first-token.c @@ -0,0 +1,5 @@ +// This is the first thing other than comments and preprocessor stuff in the +// file. +// +// RUN: %clang_cc1 -fms-extensions -E %s +#pragma comment(lib, "somelib") diff --git a/test/Frontend/unknown-pragmas.c b/test/Frontend/unknown-pragmas.c new file mode 100644 index 000000000000..53a5a45a4337 --- /dev/null +++ b/test/Frontend/unknown-pragmas.c @@ -0,0 +1,4 @@ +// RUN: %clang_cc1 -Eonly -Wall -verify %s +// RUN: %clang_cc1 -E -dM -Wall -verify %s + +#pragma adgohweopihweotnwet |