[cfe-commits] r54647 - /cfe/trunk/test/CodeGen/unwind-attr.c

Argiris Kirtzidis akyrtzi at gmail.com
Sat Aug 16 12:25:18 PDT 2008


Daniel Dunbar wrote:
> Author: ddunbar
> Date: Mon Aug 11 13:40:47 2008
> New Revision: 54647
>
> URL: http://llvm.org/viewvc/llvm-project?rev=54647&view=rev
> Log:
> Add test case for -fexceptions
>
> Added:
>     cfe/trunk/test/CodeGen/unwind-attr.c
>
> Added: cfe/trunk/test/CodeGen/unwind-attr.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/unwind-attr.c?rev=54647&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/unwind-attr.c (added)
> +++ cfe/trunk/test/CodeGen/unwind-attr.c Mon Aug 11 13:40:47 2008
> @@ -0,0 +1,5 @@
> +// RUN: clang -fexceptions -emit-llvm -o - %s | grep "@foo() {" | count 1
> +// RUN: clang -emit-llvm -o - %s | grep "@foo() nounwind {" | count 1
>   

You have to to use '&&' at the end for multiple test cases, otherwise 
the test will only consider the result of the last case:

+// RUN: clang -fexceptions -emit-llvm -o - %s | grep "@foo() {" | count 1 &&
+// RUN: clang -emit-llvm -o - %s | grep "@foo() nounwind {" | count 1





More information about the cfe-commits mailing list