mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 19:45:40 -04:00

When Clang/LLVM is built with the CLANG_DEFAULT_STD_CXX CMake macro that sets the default standard to something other than C++14, there are a number of lit tests that fail as they rely on the C++14 default. This patch just adds the language standard option explicitly to such test cases. Differential revision: https://reviews.llvm.org/D57581 llvm-svn: 353163
7 lines
526 B
C++
7 lines
526 B
C++
// RUN: %clang_cc1 -std=c++14 -fsyntax-only -verify -pedantic -triple aarch64-linux-gnu %s
|
|
float a = 1.0h; // expected-error{{no matching literal operator for call to 'operator""h' with argument of type 'long double' or 'const char *', and no matching literal operator template}}
|
|
float b = 1.0H; // expected-error{{invalid suffix 'H' on floating constant}}
|
|
|
|
_Float16 c = 1.f166; // expected-error{{invalid suffix 'f166' on floating constant}}
|
|
_Float16 d = 1.f1; // expected-error{{invalid suffix 'f1' on floating constant}}
|