================
@@ -0,0 +1,57 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify -x c++ %s
+
+// The attributes apply to function declarations, nothing else.
+__attribute__((const)) int func1(void);
+__attribute__((pure)) int func2(void);
+
+[[gnu::const]] int func3(int x) { return 12; }
+[[gnu::pure]] int func4(int x) { return 12; }
+
+#ifdef __cplusplus
+struct CppTest {
----------------
cor3ntin wrote:

Can you add a function template test?

https://github.com/llvm/llvm-project/pull/206039
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to