aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/unary-type-trait.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-12-10 22:40:32 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-12-10 22:40:32 +0000
commit9dfebdcdcdcc0cad8a3ef205d33b84f33233072b (patch)
tree12b12923bb52c497b1333b86e1a84e7ebefc0f5e /test/CodeGenCXX/unary-type-trait.cpp
parent29a7f3342c3c6dd15d914c61ae22246c36d51ce7 (diff)
Support unary type traits in a scalar context. Not that I've actually seen
this construct, but might as well for completeness. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91071 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/unary-type-trait.cpp')
-rw-r--r--test/CodeGenCXX/unary-type-trait.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGenCXX/unary-type-trait.cpp b/test/CodeGenCXX/unary-type-trait.cpp
new file mode 100644
index 0000000000..b65b9f9d4f
--- /dev/null
+++ b/test/CodeGenCXX/unary-type-trait.cpp
@@ -0,0 +1,3 @@
+// RUN: clang-cc -emit-llvm-only -verify %s
+
+bool a() { return __is_pod(int); }