diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-18 18:38:18 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-18 18:38:18 +0000 |
commit | d763b3e014a1c0deabedbd0aedfeee8b7714ab44 (patch) | |
tree | 43624a25ad93a0ed614dec74ab9cf46115e97542 /clang/test/CodeGen/enum.c | |
parent | 99589d07e91a699fb75a7c367e9ec371f8b96886 (diff) | |
download | bcm5719-llvm-d763b3e014a1c0deabedbd0aedfeee8b7714ab44.tar.gz bcm5719-llvm-d763b3e014a1c0deabedbd0aedfeee8b7714ab44.zip |
Comment a wacky test case
llvm-svn: 123758
Diffstat (limited to 'clang/test/CodeGen/enum.c')
-rw-r--r-- | clang/test/CodeGen/enum.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGen/enum.c b/clang/test/CodeGen/enum.c index 87b0e1e6714..0e239f1a8ee 100644 --- a/clang/test/CodeGen/enum.c +++ b/clang/test/CodeGen/enum.c @@ -1,6 +1,9 @@ // 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' +// This test case illustrates a peculiarity of the promotion of +// enumeration types in C and C++. In particular, the enumeration type +// "z" below promotes to an unsigned int in C but int in C++. static enum { foo, bar = 1U } z; int main (void) |