Fixing this test which failed due to different warnings
authorAaron Ballman <aaron@aaronballman.com>
Mon, 6 Dec 2021 19:12:54 +0000 (14:12 -0500)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 6 Dec 2021 19:13:29 +0000 (14:13 -0500)
clang/test/Sema/builtins-elementwise-math.c

index 19e9c00..4008f77 100644 (file)
@@ -60,7 +60,7 @@ void test_builtin_elementwise_max(int i, short s, double d, float4 v, int3 iv, i
   enum f { three };
   enum f x = __builtin_elementwise_max(one, three);
 
-  _BitInt(32) ext;
+  _BitInt(32) ext; // expected-warning {{'_BitInt' in C17 and earlier is a Clang extension}}
   ext = __builtin_elementwise_max(ext, ext);
 
   const int ci;
@@ -112,7 +112,7 @@ void test_builtin_elementwise_min(int i, short s, double d, float4 v, int3 iv, i
   enum f { three };
   enum f x = __builtin_elementwise_min(one, three);
 
-  _BitInt(32) ext;
+  _BitInt(32) ext; // expected-warning {{'_BitInt' in C17 and earlier is a Clang extension}}
   ext = __builtin_elementwise_min(ext, ext);
 
   const int ci;