-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new keyword spellings with cilk_ instead of _Cilk_
- Loading branch information
1 parent
ef3cdc8
commit 1a7a684
Showing
8 changed files
with
83 additions
and
48 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
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,16 @@ | ||
// RUN: %clang_cc1 %s -fopencilk -fsyntax-only -verify | ||
// RUN: %clang_cc1 %s -fsyntax-only -verify=nokeyword | ||
// nokeyword-no-diagnostics | ||
int cilk_spawn; | ||
// expected-error@-1{{expected identifier}} | ||
int cilk_sync = 1; | ||
// expected-error@-1{{expected identifier}} | ||
int cilk_scope = 2; | ||
// expected-error@-1{{expected identifier}} | ||
int cilk_for(int x) | ||
// expected-error@-1{{expected identifier}} | ||
{ | ||
return cilk_spawn + cilk_sync + cilk_scope; | ||
} | ||
int cilk_reducer = 3; | ||
// expected-error@-1{{expected identifier}} |
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