annotate clang/test/SemaCXX/Float16.cpp @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-linux-pc %s
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -fsyntax-only -verify -triple spir-unknown-unknown %s -DHAVE
anatofuz
parents:
diff changeset
3 // RUN: %clang_cc1 -fsyntax-only -verify -triple armv7a-linux-gnu %s -DHAVE
anatofuz
parents:
diff changeset
4 // RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-linux-gnu %s -DHAVE
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 #ifdef HAVE
anatofuz
parents:
diff changeset
7 // expected-no-diagnostics
anatofuz
parents:
diff changeset
8 #endif // HAVE
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 #ifndef HAVE
anatofuz
parents:
diff changeset
11 // expected-error@+2{{_Float16 is not supported on this target}}
anatofuz
parents:
diff changeset
12 #endif // !HAVE
anatofuz
parents:
diff changeset
13 _Float16 f;
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 #ifndef HAVE
anatofuz
parents:
diff changeset
16 // expected-error@+2{{invalid suffix 'F16' on floating constant}}
anatofuz
parents:
diff changeset
17 #endif // !HAVE
anatofuz
parents:
diff changeset
18 const auto g = 1.1F16;