blob: 938f36f2c2791dfacdf3b8ce011f620c3ed31485 [file] [log] [blame]
Argyrios Kyrtzidis646395b2010-08-11 22:55:12 +00001// Test this without pch.
Douglas Gregor4ca8ac22012-02-24 07:38:34 +00002// RUN: %clang_cc1 -include %S/cxx-traits.h -std=c++11 -fsyntax-only -verify %s
Argyrios Kyrtzidis646395b2010-08-11 22:55:12 +00003
Douglas Gregor4ca8ac22012-02-24 07:38:34 +00004// RUN: %clang_cc1 -x c++-header -std=c++11 -emit-pch -o %t %S/cxx-traits.h
5// RUN: %clang_cc1 -std=c++11 -include-pch %t -fsyntax-only -verify %s
Argyrios Kyrtzidis646395b2010-08-11 22:55:12 +00006
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00007// expected-no-diagnostics
8
Argyrios Kyrtzidis646395b2010-08-11 22:55:12 +00009bool _Is_pod_comparator = __is_pod<int>::__value;
10bool _Is_empty_check = __is_empty<int>::__value;
Douglas Gregor4ca8ac22012-02-24 07:38:34 +000011
12bool default_construct_int = is_trivially_constructible<int>::value;
13bool copy_construct_int = is_trivially_constructible<int, const int&>::value;