2010-08-12 06:55:12 +08:00
|
|
|
// Test this without pch.
|
2012-02-24 15:38:34 +08:00
|
|
|
// RUN: %clang_cc1 -include %S/cxx-traits.h -std=c++11 -fsyntax-only -verify %s
|
2010-08-12 06:55:12 +08:00
|
|
|
|
2012-02-24 15:38:34 +08:00
|
|
|
// RUN: %clang_cc1 -x c++-header -std=c++11 -emit-pch -o %t %S/cxx-traits.h
|
|
|
|
// RUN: %clang_cc1 -std=c++11 -include-pch %t -fsyntax-only -verify %s
|
2010-08-12 06:55:12 +08:00
|
|
|
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
|
|
|
|
2010-08-12 06:55:12 +08:00
|
|
|
bool _Is_pod_comparator = __is_pod<int>::__value;
|
|
|
|
bool _Is_empty_check = __is_empty<int>::__value;
|
2012-02-24 15:38:34 +08:00
|
|
|
|
|
|
|
bool default_construct_int = is_trivially_constructible<int>::value;
|
|
|
|
bool copy_construct_int = is_trivially_constructible<int, const int&>::value;
|