================
@@ -0,0 +1,80 @@
+// RUN: %libomptarget-compilexx-run-and-check-generic
+
+#include <assert.h>
+#include <omp.h>
+#include <stdio.h>
+
+#define TEST_VAL 10
+
+#pragma omp declare target
+class Base {
+public:
+  __attribute__((noinline)) __attribute__((optnone)) virtual int foo(int x) {
----------------
jhuber6 wrote:

Can we use the C++ attribute style on all of these. And why is `noinline` and 
`optnone` required? I thought the run line above already compiled at `O0` by 
default.

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

Reply via email to