-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error on redefinition of existing function with matching signatures.
Remove duplicate color2 pow functions which this exposed.
- Loading branch information
Showing
6 changed files
with
62 additions
and
18 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
test.osl:5: error: redefinition of function: int redclfunc (int). | ||
previous declaration was at test.osl:4 | ||
test.osl:10: error: redefinition of builtin function: string concat (string, string). | ||
test.osl:13: error: redefinition of function: void redclfunc (). | ||
previous declaration was at test.osl:12 | ||
FAILED test.osl |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env python | ||
|
||
# command = oslc("test.osl") | ||
# don't even need that -- it's automatic | ||
failureok = 1 # this test is expected to have oslc errors | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
int redclfunc (int f); // ok | ||
int redclfunc (int f); // ok | ||
int redclfunc (int f) { return 0; } // ok | ||
int redclfunc (int f) { return 1; } // fail | ||
int redclfunc (int f); // ok | ||
|
||
float redclfunc (float f) { return 0.0; } // ok | ||
|
||
string concat (string a, string b) { return ""; } // fail | ||
|
||
void redclfunc () { int a = 10; } | ||
void redclfunc () { int a = 10; } | ||
|
||
shader test () | ||
{ | ||
redclfunc(5); | ||
concat("a", "b"); | ||
} |