Nemanja Ivanovic | db64e7e | 2019-02-05 12:05:53 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -std=c++14 -fsyntax-only -verify -pedantic -triple aarch64-linux-gnu %s |
Tim Northover | 36bb6d5 | 2017-12-09 12:09:54 +0000 | [diff] [blame] | 2 | 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}} |
Anastasia Stulova | 5c1a2c5 | 2016-02-17 11:34:37 +0000 | [diff] [blame] | 3 | float b = 1.0H; // expected-error{{invalid suffix 'H' on floating constant}} |
Sjoerd Meijer | cc623ad | 2017-09-08 15:15:00 +0000 | [diff] [blame] | 4 | |
| 5 | _Float16 c = 1.f166; // expected-error{{invalid suffix 'f166' on floating constant}} |
| 6 | _Float16 d = 1.f1; // expected-error{{invalid suffix 'f1' on floating constant}} |