diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:47:56 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:47:56 +0000 |
commit | 5e20cdd81c44a443562a09007668ffdf76c455af (patch) | |
tree | dbbd4047878da71c1a706e26ce05b4e7791b14cc /test/CodeGen/enum.c | |
parent | d5f23b0b7528b5c3caed1ba14f897cc4aaa9e3c3 (diff) |
Notes
Diffstat (limited to 'test/CodeGen/enum.c')
-rw-r--r-- | test/CodeGen/enum.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/CodeGen/enum.c b/test/CodeGen/enum.c index 0e239f1a8ee34..ef50f9eead649 100644 --- a/test/CodeGen/enum.c +++ b/test/CodeGen/enum.c @@ -1,5 +1,7 @@ -// RUN: %clang_cc1 -triple i386-unknown-unknown %s -O3 -emit-llvm -o - | grep 'ret i32 6' -// RUN: %clang_cc1 -triple i386-unknown-unknown -x c++ %s -O3 -emit-llvm -o - | grep 'ret i32 7' +// RUN: %clang_cc1 -triple i386-unknown-unknown %s -O3 -emit-llvm -o - | FileCheck -check-prefix=CHECK-C %s +// RUN: %clang_cc1 -triple i386-unknown-unknown -x c++ %s -O3 -emit-llvm -o - | FileCheck -check-prefix=CHECK-CXX %s +// CHECK-C: ret i32 6 +// CHECK-CXX: ret i32 7 // This test case illustrates a peculiarity of the promotion of // enumeration types in C and C++. In particular, the enumeration type @@ -19,4 +21,3 @@ int main (void) return r; } - |