Created
May 29, 2015 08:07
-
-
Save genuinelucifer/9e23701dee397e5c41c3 to your computer and use it in GitHub Desktop.
Trying to regenerate issue when passing a CS_API ptr as CS_OUT!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tests/Basic/Basic.h b/tests/Basic/Basic.h | |
index 488dd2c..d4d07bd 100644 | |
--- a/tests/Basic/Basic.h | |
+++ b/tests/Basic/Basic.h | |
@@ -710,3 +710,21 @@ public: | |
bool operator ==(const DifferentConstOverloads& other); | |
bool operator ==(int number) const; | |
}; | |
+ | |
+#define CS_API | |
+class CS_API ClassPassTry | |
+{ | |
+public: | |
+ int n; | |
+ char c; | |
+}; | |
+ | |
+void funcTry(CS_OUT ClassPassTry* classTry) | |
+{ | |
+ | |
+} | |
+ | |
+void funcTry2(CS_OUT ClassPassTry classTry) | |
+{ | |
+ | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Second function generates acceptable code while the first function causes incompilable code.