# Changeset View

Changeset View

# Standalone View

Standalone View

# test/Frontend/fixed_point_errors.cpp

- This file was added.

1 | // RUN: %clang_cc1 -x c++ %s -verify | ||||
---|---|---|---|---|---|

2 | | ||||

3 | // Name namgling is not provided for fixed point types in c++ | ||||

4 | | ||||

5 | signed short _Accum s_short_accum; // expected-error{{Fixed point types are only allowed in C}} | ||||

6 | signed _Accum s_accum; // expected-error{{Fixed point types are only allowed in C}} | ||||

7 | signed long _Accum s_long_accum; // expected-error{{Fixed point types are only allowed in C}} | ||||

8 | unsigned short _Accum u_short_accum; // expected-error{{Fixed point types are only allowed in C}} | ||||

9 | unsigned _Accum u_accum; // expected-error{{Fixed point types are only allowed in C}} | ||||

10 | unsigned long _Accum u_long_accum; // expected-error{{Fixed point types are only allowed in C}} | ||||

11 | | ||||

12 | short _Accum short_accum; // expected-error{{Fixed point types are only allowed in C}} | ||||

13 | _Accum accum; // expected-error{{Fixed point types are only allowed in C}} | ||||

14 | long _Accum long_accum; // expected-error{{Fixed point types are only allowed in C}} |