Skip to content

Commit 4ada83c

Browse files
committed
C++: Update test after float128 related extractor changes
1 parent 234763e commit 4ada83c

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

cpp/ql/test/library-tests/floats/float128/errors.expected

Lines changed: 0 additions & 3 deletions
This file was deleted.

cpp/ql/test/library-tests/floats/float128/errors.ql

Lines changed: 0 additions & 4 deletions
This file was deleted.

cpp/ql/test/library-tests/floats/float128/float128.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
typedef _Complex float __attribute__((mode(TC))) _Complex128; // [COMPILER ERROR AND ERROR-TYPE DUE TO __float128 BEING DISABLED]
2-
typedef float __attribute__((mode(TF))) _Float128; // [COMPILER ERROR AND ERROR-TYPE DUE TO __float128 BEING DISABLED]
1+
typedef _Complex float __attribute__((mode(TC))) _Complex128;
2+
typedef float __attribute__((mode(TF))) _Float128;
33

44
int main() {
55
__float128 f = 1.0f;
@@ -25,4 +25,3 @@ __float128 id(__float128 q)
2525
{
2626
return q;
2727
}
28-
// semmle-extractor-options: --expect_errors

cpp/ql/test/library-tests/floats/float128/usertypes.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| float128.cpp:1:50:1:60 | _Complex128 | file://:0:0:0:0 | <error-type> |
2-
| float128.cpp:2:41:2:49 | _Float128 | file://:0:0:0:0 | <error-type> |
1+
| float128.cpp:1:50:1:60 | _Complex128 | file://:0:0:0:0 | float __complex__ |
2+
| float128.cpp:2:41:2:49 | _Float128 | file://:0:0:0:0 | __float128 |
33
| float128.cpp:13:29:13:54 | __is_floating_point_helper<T> | float128.cpp:10:8:10:17 | false_type |
44
| float128.cpp:14:19:14:51 | __is_floating_point_helper<float> | float128.cpp:11:8:11:16 | true_type |
55
| float128.cpp:15:19:15:52 | __is_floating_point_helper<double> | float128.cpp:11:8:11:16 | true_type |

0 commit comments

Comments
 (0)