blob: ffdfccc6f47f47254a3419b69b8bc10014346fe7 [file] [log] [blame]
Argyrios Kyrtzidis3084a612010-08-11 22:55:12 +00001// Test this without pch.
Douglas Gregor29c42f22012-02-24 07:38:34 +00002// RUN: %clang_cc1 -include %S/cxx-traits.h -std=c++11 -fsyntax-only -verify %s
Argyrios Kyrtzidis3084a612010-08-11 22:55:12 +00003
Douglas Gregor29c42f22012-02-24 07:38:34 +00004// RUN: %clang_cc1 -x c++-header -std=c++11 -emit-pch -o %t %S/cxx-traits.h
Alp Toker47642d22013-12-03 06:13:01 +00005// RUN: %clang_cc1 -std=c++11 -include-pch %t -DPCH -fsyntax-only -verify %s
Argyrios Kyrtzidis3084a612010-08-11 22:55:12 +00006
Alp Toker47642d22013-12-03 06:13:01 +00007#ifdef PCH
Andy Gibbsc6e68da2012-10-19 12:44:48 +00008// expected-no-diagnostics
Alp Toker47642d22013-12-03 06:13:01 +00009#endif
Andy Gibbsc6e68da2012-10-19 12:44:48 +000010
Argyrios Kyrtzidis3084a612010-08-11 22:55:12 +000011bool _Is_pod_comparator = __is_pod<int>::__value;
12bool _Is_empty_check = __is_empty<int>::__value;
Douglas Gregor29c42f22012-02-24 07:38:34 +000013
14bool default_construct_int = is_trivially_constructible<int>::value;
15bool copy_construct_int = is_trivially_constructible<int, const int&>::value;