================
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 -verify -fsyntax-only %s
+
+int __attribute__((not_tail_called)) foo1(int a) {
+    return a + 1;  
+}
+
+
+int foo2(int a) {
+    [[clang::musttail]] 
+    return foo1(a);  // expected-error {{cannot perform a tail call to 
function 'foo1' because its signature is incompatible with the calling 
function}}
----------------
MillePlateaux wrote:

@erichkeane I still don't understand what you mean. Do I need to report 
```cannot perform a tail call to function 'foo1' because its signature is 
incompatible with the calling function note: 'not_tail_called' attribute here 
prevents being called as a tail call' ```after the function is run?

https://github.com/llvm/llvm-project/pull/134465
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to