File tree Expand file tree Collapse file tree 2 files changed +18
-16
lines changed Expand file tree Collapse file tree 2 files changed +18
-16
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %clang_cc1 -triple arm64-apple-darwin -fsyntax-only -verify -Wunused -std=c++98 %s
2
+ // RUN: %clang_cc1 -triple arm64-apple-darwin -fsyntax-only -verify -Wunused -std=c++14 %s
3
+
4
+ __attribute__ ((target_version(" fp16" )))
5
+ static int not_used_fmv(void ) { return 1 ; }
6
+ __attribute__ ((target_version(" fp16fml" )))
7
+ static int not_used_fmv(void ) { return 2 ; }
8
+ __attribute__ ((target_version(" default" )))
9
+ static int not_used_fmv(void ) { return 0 ; } // expected-warning {{unused function 'not_used_fmv'}}
10
+
11
+
12
+ __attribute__ ((target_version(" fp16" )))
13
+ static int definitely_used_fmv(void ) { return 1 ; }
14
+ __attribute__ ((target_version(" fp16fml" )))
15
+ static int definitely_used_fmv(void ) { return 2 ; }
16
+ __attribute__ ((target_version(" default" )))
17
+ static int definitely_used_fmv(void ) { return 0 ; }
18
+ int definite_user (void ) { return definitely_used_fmv (); }
Original file line number Diff line number Diff line change @@ -236,20 +236,4 @@ constexpr int constexpr4() { return 2; }
236
236
#endif
237
237
}
238
238
239
- __attribute__ ((target_version(" fp16" )))
240
- static int not_used_fmv(void ) { return 1 ; }
241
- __attribute__ ((target_version(" fp16fml" )))
242
- static int not_used_fmv(void ) { return 2 ; }
243
- __attribute__ ((target_version(" default" )))
244
- static int not_used_fmv(void ) { return 0 ; } // expected-warning {{unused function 'not_used_fmv'}}
245
-
246
-
247
- __attribute__ ((target_version(" fp16" )))
248
- static int definitely_used_fmv(void ) { return 1 ; }
249
- __attribute__ ((target_version(" fp16fml" )))
250
- static int definitely_used_fmv(void ) { return 2 ; }
251
- __attribute__ ((target_version(" default" )))
252
- static int definitely_used_fmv(void ) { return 0 ; }
253
- int definite_user (void ) { return definitely_used_fmv (); }
254
-
255
239
#endif
You can’t perform that action at this time.
0 commit comments