-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Teach TemplateNonTypeArgToInt to replace template params, too.
- Loading branch information
1 parent
c278cf7
commit 80f3525
Showing
4 changed files
with
42 additions
and
3 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,12 @@ | ||
//RUN: %clang_delta --transformation=template-non-type-arg-to-int --counter=1 %s | FileCheck %s | ||
|
||
enum _Lock_policy { _S_atomic } const __default_lock_policy = _S_atomic; | ||
template <_Lock_policy _Lp> class __shared_count { | ||
public: | ||
template <typename _Ptr> __shared_count(_Ptr __p) { } | ||
}; | ||
|
||
//CHECK: template <int _Lp> class __shared_count { | ||
//CHECK-NEXT: public: | ||
//CHECK-NEXT: template <typename _Ptr> __shared_count(_Ptr __p) { } | ||
//CHECK-NEXT: }; |